summaryrefslogtreecommitdiff
path: root/scene/gui/line_edit.cpp
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2020-02-01 13:35:16 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2020-02-01 13:35:16 +0800
commit4774043f8e38a9efb0991458cf0f6d4636329d93 (patch)
treef6a80e96d5874211ee3713d7b2e7bf2122d2b8fc /scene/gui/line_edit.cpp
parent188dc714b000bbdb086513dcff3dd4bc4f75a0e7 (diff)
Adds CTRL-A CTRL-E support to LineEdit on macOS
Diffstat (limited to 'scene/gui/line_edit.cpp')
-rw-r--r--scene/gui/line_edit.cpp6
1 files changed, 6 insertions, 0 deletions
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<InputEvent> 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) {