diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-05-04 09:25:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-04 09:25:33 +0200 |
commit | 6653ec7cfefa9bcb1b034c1c36439ab52f24199d (patch) | |
tree | 823fe2d1fefcfed24df57428bcab7415c14979ea | |
parent | 508fbf4abea8ab5cffe75490896ea0726ce84e76 (diff) | |
parent | 76903d2c447ca5e8949056723026ab295b7a2558 (diff) |
Merge pull request #48418 from KoBeWi/press_enter_to_complete
Add Enter as alternate key to complete code
-rw-r--r-- | core/input/input_map.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/input/input_map.cpp b/core/input/input_map.cpp index aab4e6593c..7421909650 100644 --- a/core/input/input_map.cpp +++ b/core/input/input_map.cpp @@ -474,6 +474,7 @@ const OrderedHashMap<String, List<Ref<InputEvent>>> &InputMap::get_builtins() { inputs = List<Ref<InputEvent>>(); inputs.push_back(InputEventKey::create_reference(KEY_TAB)); + inputs.push_back(InputEventKey::create_reference(KEY_ENTER)); default_builtin_cache.insert("ui_text_completion_accept", inputs); // Newlines |