From 5d3108acbbe8704f38fa8646f5968af4acc137ed Mon Sep 17 00:00:00 2001 From: Anish Date: Thu, 24 May 2018 15:04:22 +0530 Subject: [PATCH] Ensures CMD+left and CMD+right only valid for OSX. Fix in #18370 is now only valid for OSX and is reverted for other OS. Fixes #19042 --- scene/gui/line_edit.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 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; } }