From 4774043f8e38a9efb0991458cf0f6d4636329d93 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Sat, 1 Feb 2020 13:35:16 +0800 Subject: Adds CTRL-A CTRL-E support to LineEdit on macOS --- scene/gui/line_edit.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'scene/gui') diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp index 7afc3b0d00..9a9e473100 100644 --- a/scene/gui/line_edit.cpp +++ b/scene/gui/line_edit.cpp @@ -184,6 +184,12 @@ void LineEdit::_gui_input(Ref p_event) { case KEY_H: { remap_key = KEY_BACKSPACE; } break; + case KEY_A: { + remap_key = KEY_HOME; + } break; + case KEY_E: { + remap_key = KEY_END; + } break; } if (remap_key != KEY_UNKNOWN) { -- cgit v1.2.3