Merge branch 'fix-macos-shortcuts' of https://github.com/page-down/kitty

This commit is contained in:
Kovid Goyal 2022-02-11 12:14:55 +05:30
commit b2317e0f12
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -595,9 +595,10 @@ build_global_shortcuts_lookup(void) {
id enabled = [sc_value objectForKey:@"enabled"];
if (!enabled || ![enabled isKindOfClass:[NSNumber class]]) continue;
[temp_configured addObject:@(sc)];
if (![enabled boolValue]) continue;
id v = [sc_value objectForKey:@"value"];
if (!v || ![v isKindOfClass:[NSDictionary class]]) {
if ([(NSNumber*)enabled intValue]) [temp_missing_value addObject:@(sc)];
if ([enabled boolValue]) [temp_missing_value addObject:@(sc)];
continue;
}
NSDictionary *value = v;