[poincare] Prevent system parenthesis text insertion

Change-Id: I5963d2fda37ed9776059b29edced75f88b4ccb2b
This commit is contained in:
Hugo Saint-Vignes
2020-11-19 15:24:14 +01:00
committed by LeaNumworks
parent d8527b02ad
commit 3ac3fba468

View File

@@ -223,12 +223,12 @@ void LayoutCursor::insertText(const char * text, bool forceCursorRightOfText) {
}
if (codePoint == UCodePointMultiplicationSign) {
newChild = CodePointLayout::Builder(UCodePointMultiplicationSign);
} else if (codePoint == '(') {
} else if (codePoint == '(' || codePoint == UCodePointLeftSystemParenthesis) {
newChild = LeftParenthesisLayout::Builder();
if (pointedChild.isUninitialized()) {
pointedChild = newChild;
}
} else if (codePoint == ')') {
} else if (codePoint == ')' || codePoint == UCodePointRightSystemParenthesis) {
newChild = RightParenthesisLayout::Builder();
}
/* We never insert text with brackets for now. Removing this code saves the