macOS 15: Handle Fn modifier when detecting global shortcuts

Fixes #7582
This commit is contained in:
Kovid Goyal 2024-07-01 09:54:01 +05:30
parent 1393fa6239
commit 314da124f3
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 3 additions and 1 deletions

View File

@ -82,6 +82,8 @@ Detailed list of changes
- macOS: Fix rendering of the unicode hyphen (U+2010) character when using a font that does not include a glyph for it (:iss:`7525`)
- macOS 15: Handle Fn modifier when detecting global shortcuts (:iss:`7582`)
0.35.2 [2024-06-22]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -579,7 +579,7 @@ - (void)render_frame_received:(id)displayIDAsID
return scv == kSHKMoveFocusToActiveOrNextWindow || scv == kSHKMoveFocusToNextWindow;
}
#define USEFUL_MODS(x) (x & (NSEventModifierFlagShift | NSEventModifierFlagOption | NSEventModifierFlagCommand | NSEventModifierFlagControl))
#define USEFUL_MODS(x) (x & (NSEventModifierFlagShift | NSEventModifierFlagOption | NSEventModifierFlagCommand | NSEventModifierFlagControl | NSEventModifierFlagFunction))
static void
build_global_shortcuts_lookup(void) {