Update editor_controller.cpp

This commit is contained in:
redgl0w
2020-02-17 09:53:30 +01:00
committed by GitHub
parent 2172eaa7a4
commit eaef26c1aa

View File

@@ -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. */