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

View File

@@ -193,7 +193,7 @@ constexpr Event AlphaDown = Event::AlphaKey(Keyboard::Key::Down);
constexpr Event Colon = Event::AlphaKey(Keyboard::Key::XNT);
constexpr Event SemiColon = Event::AlphaKey(Keyboard::Key::Var);
constexpr Event DoubleQuotes = Event::AlphaKey(Keyboard::Key::Toolbox);
constexpr Event Percent = Event::AlphaKey(Keyboard::Key::Back);
constexpr Event Percent = Event::AlphaKey(Keyboard::Key::Backspace);
constexpr Event LowerA = Event::AlphaKey(Keyboard::Key::Exp);
constexpr Event LowerB = Event::AlphaKey(Keyboard::Key::Ln);