Merge pull request #18370 from KidRigger/master

Adds support for CMD+Left and CMD+Right on MacOS
This commit is contained in:
Max Hilbrunner 2018-04-30 19:02:20 +02:00 committed by GitHub
commit 613a8bee41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -215,6 +215,12 @@ void LineEdit::_gui_input(Ref<InputEvent> p_event) {
case (KEY_A): { //Select All
select();
} break;
case (KEY_LEFT): { // Go to start of text - like HOME key
set_cursor_position(0);
} break;
case (KEY_RIGHT): { // Go to end of text - like END key
set_cursor_position(text.length());
} break;
default: { handled = false; }
}