Merge branch 'fix-macos-shortcuts' of https://github.com/page-down/kitty
This commit is contained in:
commit
b2317e0f12
@ -593,11 +593,12 @@ build_global_shortcuts_lookup(void) {
|
|||||||
NSInteger sc = [key integerValue];
|
NSInteger sc = [key integerValue];
|
||||||
NSDictionary *sc_value = obj;
|
NSDictionary *sc_value = obj;
|
||||||
id enabled = [sc_value objectForKey:@"enabled"];
|
id enabled = [sc_value objectForKey:@"enabled"];
|
||||||
if (!enabled || ![enabled isKindOfClass:[NSNumber class]] ) continue;
|
if (!enabled || ![enabled isKindOfClass:[NSNumber class]]) continue;
|
||||||
[temp_configured addObject:@(sc)];
|
[temp_configured addObject:@(sc)];
|
||||||
|
if (![enabled boolValue]) continue;
|
||||||
id v = [sc_value objectForKey:@"value"];
|
id v = [sc_value objectForKey:@"value"];
|
||||||
if (!v || ![v isKindOfClass:[NSDictionary class]]) {
|
if (!v || ![v isKindOfClass:[NSDictionary class]]) {
|
||||||
if ([(NSNumber*)enabled intValue]) [temp_missing_value addObject:@(sc)];
|
if ([enabled boolValue]) [temp_missing_value addObject:@(sc)];
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
NSDictionary *value = v;
|
NSDictionary *value = v;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user