diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-05-25 12:00:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-25 12:00:57 +0200 |
commit | f5bc7156b7ffdf3f0959e3bc7b93fb1d1bd0097e (patch) | |
tree | 9e6257011dd16b5847866ac23e18b56178777e86 | |
parent | 5ac70d96d0c3ea34b027c6b7004871f70c90a19a (diff) | |
parent | 5d3108acbbe8704f38fa8646f5968af4acc137ed (diff) |
Merge pull request #19139 from KidRigger/master
Ensures CMD+left and CMD+right only valid for OSX.
-rw-r--r-- | scene/gui/line_edit.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp index 2b644e7f96..f1f1a66b47 100644 --- a/scene/gui/line_edit.cpp +++ b/scene/gui/line_edit.cpp @@ -215,12 +215,14 @@ void LineEdit::_gui_input(Ref<InputEvent> p_event) { case (KEY_A): { //Select All select(); } break; +#ifdef APPLE_STYLE_KEYS 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; +#endif default: { handled = false; } } |