diff --git a/poincare/src/layout_cursor.cpp b/poincare/src/layout_cursor.cpp index 17fc57fc5..b90c6922e 100644 --- a/poincare/src/layout_cursor.cpp +++ b/poincare/src/layout_cursor.cpp @@ -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