mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[poincare] Prevent system parenthesis text insertion
Change-Id: I5963d2fda37ed9776059b29edced75f88b4ccb2b
This commit is contained in:
committed by
LeaNumworks
parent
d8527b02ad
commit
3ac3fba468
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user