Fix #132150: macOS: Allow searching keymap using native modifiers key names

Allow searching through keybindings on macOS using native modifiers key
names "control", "option", and "command".

Pull Request: https://projects.blender.org/blender/blender/pulls/132579
This commit is contained in:
Jonas Holzman 2025-01-28 02:12:06 +01:00 committed by Harley Acheson
parent bf19960937
commit 001c3b0d4b

View File

@ -258,9 +258,14 @@ def draw_filtered(display_keymaps, filter_type, filter_text, layout):
"ctrl": "ctrl",
"alt": "alt",
"shift": "shift",
"cmd": "oskey",
"oskey": "oskey",
"any": "any",
# macOS specific modifiers names
"control": "ctrl",
"option": "alt",
"cmd": "oskey",
"command": "oskey",
}
# KeyMapItem like dict, use for comparing against
# attr: {states, ...}