File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,7 @@ Other Changes:
124
124
bar boundaries (bug in 1.88). (#5652).
125
125
- Tabs: Enforcing minimum size of 1.0f, fixed asserting on zero-tab widths. (#5572)
126
126
- Window: Fixed a potential crash when appending to a child window. (#5515, #3496, #4797) [@rokups]
127
+ - IO: Added ImGuiMod_Shortcut which is ImGuiMod_Super on Mac and ImGuiMod_Ctrl otherwise. (#456)
127
128
- IO: Added ImGuiKey_MouseXXX aliases for mouse buttons/wheel so all operations done on ImGuiKey
128
129
can apply to mouse data as well. (#4921)
129
130
- Menus: Fixed incorrect sub-menu parent association when opening a menu by closing another.
Original file line number Diff line number Diff line change @@ -1459,6 +1459,11 @@ enum ImGuiKey : int
1459
1459
ImGuiMod_Alt = 1 << 14 , // Option/Menu
1460
1460
ImGuiMod_Super = 1 << 15 , // Cmd/Super/Windows
1461
1461
ImGuiMod_Mask_ = 0xF000 ,
1462
+ #if defined(__APPLE__)
1463
+ ImGuiMod_Shortcut = ImGuiMod_Super,
1464
+ #else
1465
+ ImGuiMod_Shortcut = ImGuiMod_Ctrl,
1466
+ #endif
1462
1467
1463
1468
// [Internal] Prior to 1.87 we required user to fill io.KeysDown[512] using their own native index + the io.KeyMap[] array.
1464
1469
// We are ditching this method but keeping a legacy path for user code doing e.g. IsKeyPressed(MY_NATIVE_KEY_CODE)
You can’t perform that action at this time.
0 commit comments