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.h | |
parent | 0f0b853c988f2c3ff322d8eaf97dd4f8d5de46c8 (diff) | |
parent | fa528b86b6fe83a3a2aa441ae6a48077d250e54e (diff) |
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.h')
-rw-r--r-- | core/os/keyboard.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/os/keyboard.h b/core/os/keyboard.h index 389baee915..c78fa2a631 100644 --- a/core/os/keyboard.h +++ b/core/os/keyboard.h @@ -65,6 +65,11 @@ enum class Key { SHIFT = SPECIAL | 0x15, CTRL = SPECIAL | 0x16, META = SPECIAL | 0x17, +#if defined(MACOS_ENABLED) + CMD_OR_CTRL = META, +#else + CMD_OR_CTRL = CTRL, +#endif ALT = SPECIAL | 0x18, CAPSLOCK = SPECIAL | 0x19, NUMLOCK = SPECIAL | 0x1A, |