diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-10-03 20:44:33 +0300 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-10-03 20:44:50 +0300 |
commit | bfbbe9c1d043cdd8550f5e41a8976d785da10c0f (patch) | |
tree | a7364e732afea8bb856af34786bbc0ad05ba1c0f /platform/macos | |
parent | 321251a133920912f2764272626f32c788ab70b9 (diff) |
[macOS] Fix ⌘ + . + other modifier triggering twice.
Diffstat (limited to 'platform/macos')
-rw-r--r-- | platform/macos/display_server_macos.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/macos/display_server_macos.mm b/platform/macos/display_server_macos.mm index 1914c5f35d..f980129081 100644 --- a/platform/macos/display_server_macos.mm +++ b/platform/macos/display_server_macos.mm @@ -586,7 +586,7 @@ void DisplayServerMacOS::send_event(NSEvent *p_event) { // Special case handling of command-period, which is traditionally a special // shortcut in macOS and doesn't arrive at our regular keyDown handler. if ([p_event type] == NSEventTypeKeyDown) { - if (([p_event modifierFlags] & NSEventModifierFlagCommand) && [p_event keyCode] == 0x2f) { + if ((([p_event modifierFlags] & NSEventModifierFlagDeviceIndependentFlagsMask) == NSEventModifierFlagCommand) && [p_event keyCode] == 0x2f) { Ref<InputEventKey> k; k.instantiate(); |