diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-16 12:47:07 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-16 12:47:07 +0100 |
commit | d94a46ab9584ebdeb46d0f6b2f25d581ce406eff (patch) | |
tree | 8065635b4b0c3235064c28299eecf4fa10025cc1 /core/os/keyboard.cpp | |
parent | 0f0b853c988f2c3ff322d8eaf97dd4f8d5de46c8 (diff) | |
parent | fa528b86b6fe83a3a2aa441ae6a48077d250e54e (diff) | |
download | redot-engine-d94a46ab9584ebdeb46d0f6b2f25d581ce406eff.tar.gz |
Merge pull request #64021 from ajreckof/change-shortcut-for-rect-tool-tilemap
Add `Key::CTRL_OR_CMD` and use it to fix shortcut for tilemap painting tools on macOS
Diffstat (limited to 'core/os/keyboard.cpp')
-rw-r--r-- | core/os/keyboard.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/os/keyboard.cpp b/core/os/keyboard.cpp index e0231b818f..5183b77cb1 100644 --- a/core/os/keyboard.cpp +++ b/core/os/keyboard.cpp @@ -63,12 +63,15 @@ static const _KeyCodeText _keycodes[] = { {Key::CTRL ,"Ctrl"}, #if defined(MACOS_ENABLED) {Key::META ,"Command"}, + {Key::CMD_OR_CTRL ,"Command"}, {Key::ALT ,"Option"}, #elif defined(WINDOWS_ENABLED) {Key::META ,"Windows"}, + {Key::CMD_OR_CTRL ,"Ctrl"}, {Key::ALT ,"Alt"}, #else {Key::META ,"Meta"}, + {Key::CMD_OR_CTRL ,"Ctrl"}, {Key::ALT ,"Alt"}, #endif {Key::CAPSLOCK ,"CapsLock"}, |