diff options
author | Max Hilbrunner <mhilbrunner@users.noreply.github.com> | 2018-04-30 19:02:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-30 19:02:20 +0200 |
commit | 613a8bee415381a8564d34092b479e1f159e8e60 (patch) | |
tree | bd59ed9889f27bb733c39737d0fc2342051ecbcf /scene | |
parent | 196fc8599a799eb9aa78961f59b2b622238d9e11 (diff) | |
parent | a126876cc834aeb9c81b3f4abecf5836f0c02782 (diff) |
Merge pull request #18370 from KidRigger/master
Adds support for CMD+Left and CMD+Right on MacOS
Diffstat (limited to 'scene')
-rw-r--r-- | scene/gui/line_edit.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp index d17048bd16..ef0d5e4c6e 100644 --- a/scene/gui/line_edit.cpp +++ b/scene/gui/line_edit.cpp @@ -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; } } |