diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2023-02-20 22:31:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-20 22:31:11 +0100 |
commit | e693a3debbe685f3632f1e420ac02a56ce26705d (patch) | |
tree | 1f61d2d28a3aae05b9f0a4f1d66fec186a3d3d86 /core | |
parent | 9c960a8c2494eb826a557a7ffc96dd4547f9d31e (diff) | |
parent | b3c64675cce2a99a1c8549569939fe57ff61eeea (diff) |
Merge pull request #73422 from bruvzg/no_alt
[macOS] Replace all `Alt/Option+Letter/Number` default shortcuts to avoid conflicts with special character input.
Diffstat (limited to 'core')
-rw-r--r-- | core/input/input_map.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/input/input_map.cpp b/core/input/input_map.cpp index b2e6b57eb6..910778324c 100644 --- a/core/input/input_map.cpp +++ b/core/input/input_map.cpp @@ -669,6 +669,10 @@ const HashMap<String, List<Ref<InputEvent>>> &InputMap::get_builtins() { default_builtin_cache.insert("ui_text_select_word_under_caret", inputs); inputs = List<Ref<InputEvent>>(); + inputs.push_back(InputEventKey::create_reference(Key::G | KeyModifierMask::CTRL | KeyModifierMask::META)); + default_builtin_cache.insert("ui_text_select_word_under_caret.macos", inputs); + + inputs = List<Ref<InputEvent>>(); inputs.push_back(InputEventKey::create_reference(Key::D | KeyModifierMask::CMD_OR_CTRL)); default_builtin_cache.insert("ui_text_add_selection_for_next_occurrence", inputs); |