Merge branch 'omega-dev-e13' of github.com:Omega-Numworks/Omega into omega-dev-e13

This commit is contained in:
Quentin Guidée
2020-02-17 17:10:42 +01:00
2 changed files with 14 additions and 0 deletions

View File

@@ -78,6 +78,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. */