macOS: Only check the "standard" type of the system shortcuts
This commit is contained in:
parent
e0700d45de
commit
ab5b9fb329
1 changed files with 2 additions and 0 deletions
|
|
@ -561,6 +561,8 @@ - (void)render_frame_received:(id)displayIDAsID
|
|||
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<NSNumber*> *parameters = p;
|
||||
|
|
|
|||
Loading…
Reference in a new issue