mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[code] Fix movement in input
This commit is contained in:
@@ -187,8 +187,12 @@ bool TextArea::handleEvent(Ion::Events::Event event) {
|
||||
contentView()->moveCursorGeo(0, INT_MAX/2);
|
||||
TextInput::scrollToCursor();
|
||||
} else if (event == Ion::Events::Left || event == Ion::Events::Right) {
|
||||
selectUpDown(event == Ion::Events::ShiftUp, step);
|
||||
return true;
|
||||
if (contentView()->resetSelection()) {
|
||||
return true;
|
||||
}
|
||||
return (event == Ion::Events::Left) ?
|
||||
TextInput::moveCursorLeft(step) :
|
||||
TextInput::moveCursorRight(step);
|
||||
}
|
||||
if (event == Ion::Events::Left || event == Ion::Events::Right) {
|
||||
if (contentView()->resetSelection()) {
|
||||
|
||||
Reference in New Issue
Block a user