mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
Update editor_controller.cpp
This commit is contained in:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user