mirror of
https://github.com/mpv-player/mpv
synced 2025-02-27 10:50:53 +00:00
macosx_events: fix modifiers handling with media keys
This was caused by a typo. Regression from add7c2955d
.
Fixes #213
This commit is contained in:
parent
88503a12c2
commit
00a08af9f6
@ -324,7 +324,7 @@ void cocoa_put_key_with_modifiers(int keycode, int modifiers)
|
|||||||
-(BOOL)handleKey:(int)key withMask:(int)mask andMapping:(NSDictionary *)mapping
|
-(BOOL)handleKey:(int)key withMask:(int)mask andMapping:(NSDictionary *)mapping
|
||||||
{
|
{
|
||||||
int mpkey = [mapping[@(key)] intValue];
|
int mpkey = [mapping[@(key)] intValue];
|
||||||
return [self handleMPKey:mpkey withMask:mpkey];
|
return [self handleMPKey:mpkey withMask:mask];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSEvent*)handleKey:(NSEvent *)event
|
- (NSEvent*)handleKey:(NSEvent *)event
|
||||||
|
Loading…
Reference in New Issue
Block a user