From ab5b9fb329d536c340659fa657748be586a0ab6a Mon Sep 17 00:00:00 2001 From: pagedown Date: Fri, 14 Jan 2022 10:07:38 +0800 Subject: [PATCH] macOS: Only check the "standard" type of the system shortcuts --- glfw/cocoa_init.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/glfw/cocoa_init.m b/glfw/cocoa_init.m index 46a20b94d..cbe24249c 100644 --- a/glfw/cocoa_init.m +++ b/glfw/cocoa_init.m @@ -561,6 +561,8 @@ build_global_shortcuts_lookup(void) { id v = [sc_value objectForKey:@"value"]; if (!v || ![v isKindOfClass:[NSDictionary class]]) continue; NSDictionary *value = v; + id t = [value objectForKey:@"type"]; + if (!t || ![t isKindOfClass:[NSString class]] || ![t isEqualToString:@"standard"]) continue; id p = [value objectForKey:@"parameters"]; if (!p || ![p isKindOfClass:[NSArray class]] || [(NSArray*)p count] < 2) continue; NSArray *parameters = p;