You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Fix key mapping changes when moving from macOS to other platform
Removes separate `Command` key (use `Meta` instead). Adds an event flag to automatically remap `Command` <-> `Control` (cannot be set alongside `Control` or `Meta`).
This commit is contained in:
@@ -239,7 +239,7 @@ void ProjectSettingsEditor::shortcut_input(const Ref<InputEvent> &p_event) {
|
||||
handled = true;
|
||||
}
|
||||
|
||||
if (k->get_keycode_with_modifiers() == (KeyModifierMask::CMD | Key::F)) {
|
||||
if (k->is_match(InputEventKey::create_reference(KeyModifierMask::CMD_OR_CTRL | Key::F))) {
|
||||
search_box->grab_focus();
|
||||
search_box->select_all();
|
||||
handled = true;
|
||||
|
||||
Reference in New Issue
Block a user