From e6d5e532e99c9e3765a102cd5a85330da39b78b3 Mon Sep 17 00:00:00 2001 From: Goldenlion5648 Date: Sun, 15 Mar 2026 21:53:28 -0400 Subject: [PATCH] stop autocomplete from eating words by default --- core/input/input_map.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/input/input_map.cpp b/core/input/input_map.cpp index e5f4bd78c5..7d484f4168 100644 --- a/core/input/input_map.cpp +++ b/core/input/input_map.cpp @@ -565,16 +565,16 @@ const HashMap>> &InputMap::get_builtins() { inputs.push_back(InputEventKey::create_reference(Key::SPACE | KeyModifierMask::CTRL)); default_builtin_cache.insert("ui_text_completion_query", inputs); - inputs = List>(); - inputs.push_back(InputEventKey::create_reference(KeyModifierMask::SHIFT | Key::TAB)); - inputs.push_back(InputEventKey::create_reference(KeyModifierMask::SHIFT | Key::ENTER)); - inputs.push_back(InputEventKey::create_reference(KeyModifierMask::SHIFT | Key::KP_ENTER)); - default_builtin_cache.insert("ui_text_completion_accept", inputs); - inputs = List>(); inputs.push_back(InputEventKey::create_reference(Key::TAB)); inputs.push_back(InputEventKey::create_reference(Key::ENTER)); inputs.push_back(InputEventKey::create_reference(Key::KP_ENTER)); + default_builtin_cache.insert("ui_text_completion_accept", inputs); + + inputs = List>(); + inputs.push_back(InputEventKey::create_reference(KeyModifierMask::SHIFT | Key::TAB)); + inputs.push_back(InputEventKey::create_reference(KeyModifierMask::SHIFT | Key::ENTER)); + inputs.push_back(InputEventKey::create_reference(KeyModifierMask::SHIFT | Key::KP_ENTER)); default_builtin_cache.insert("ui_text_completion_replace", inputs); // Newlines