1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-12 13:20:55 +00:00

Merge pull request #35814 from timothyqiu/line-edit-shortcut

Adds CTRL-A CTRL-E support to LineEdit on macOS
This commit is contained in:
Rémi Verschelde
2020-02-09 12:51:59 +01:00
committed by GitHub
2 changed files with 8 additions and 0 deletions

View File

@@ -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) {