Fixed % in alpha lock

This commit is contained in:
Joachim LF
2020-07-09 17:53:51 +02:00
committed by Quentin Guidée
parent d7ac7e19bb
commit 04901e3231
2 changed files with 1 additions and 9 deletions

View File

@@ -80,14 +80,6 @@ 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