mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
Fixed % in alpha lock
This commit is contained in:
committed by
Quentin Guidée
parent
d7ac7e19bb
commit
04901e3231
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user