Pārlūkot izejas kodu

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
Anish 7 gadi atpakaļ
vecāks
revīzija
5d3108acbb
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      scene/gui/line_edit.cpp

+ 2 - 0
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; }
 			}