diff --git a/apps/code/editor_controller.cpp b/apps/code/editor_controller.cpp index b4fd1ff2a..aa000fa24 100644 --- a/apps/code/editor_controller.cpp +++ b/apps/code/editor_controller.cpp @@ -77,6 +77,15 @@ bool EditorController::textAreaDidReceiveEvent(TextArea * textArea, Ion::Events: return true; } + if(event.hasText()){ + if(event.text() == "%" && Ion::Events::isLockActive() ){ + return textArea->removePreviousGlyph(); + } else { + return textArea->handleEventWithText(event.text(), true, false); + } + } + + if (event == Ion::Events::Backspace && textArea->selectionIsEmpty()) { /* If the cursor is on the left of the text of a line, backspace one * indentation space at a time. */