summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-02-09 12:51:59 +0100
committerGitHub <noreply@github.com>2020-02-09 12:51:59 +0100
commit7f95e027b45842c62dac3bc415de22b97c1abcc3 (patch)
tree409244040a4acd551a4fa055c7b86c0c2331487e /scene/gui
parent480bfbd42ea53d3b0e66bb6cd54b30eff1bf9634 (diff)
parent4774043f8e38a9efb0991458cf0f6d4636329d93 (diff)
Merge pull request #35814 from timothyqiu/line-edit-shortcut
Adds CTRL-A CTRL-E support to LineEdit on macOS
Diffstat (limited to 'scene/gui')
-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 7cc47d351e..2504989d2c 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) {