summaryrefslogtreecommitdiffstats
path: root/osdep/macosx_application.m
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2013-08-30 19:46:48 +0200
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2013-08-30 19:49:30 +0200
commit462e6f281a66ad8d8bfcfc9a342d365ccc28121f (patch)
treecc1f2674d8ff6faac6c3ee3ca976a49a916252c0 /osdep/macosx_application.m
parentc89b162462d37b06d1d2f78379c8d4fc9bf57c81 (diff)
downloadmpv-462e6f281a66ad8d8bfcfc9a342d365ccc28121f.tar.bz2
mpv-462e6f281a66ad8d8bfcfc9a342d365ccc28121f.tar.xz
cocoa: let the core handle key repeats
Report key down and key up modifiers to the core so that it can issue it's own key repeats (instead of relying on Cocoa's ones).
Diffstat (limited to 'osdep/macosx_application.m')
-rw-r--r--osdep/macosx_application.m5
1 files changed, 2 insertions, 3 deletions
diff --git a/osdep/macosx_application.m b/osdep/macosx_application.m
index e561d54c13..fb20fbf2cc 100644
--- a/osdep/macosx_application.m
+++ b/osdep/macosx_application.m
@@ -93,11 +93,10 @@ static NSString *escape_loadfile_name(NSString *input)
self.eventsResponder = [[[EventsResponder alloc] init] autorelease];
self.willStopOnOpenEvent = NO;
- [NSEvent addLocalMonitorForEventsMatchingMask:NSKeyDownMask
+ [NSEvent addLocalMonitorForEventsMatchingMask:NSKeyDownMask|NSKeyUpMask
handler:^(NSEvent *event) {
- return [self.eventsResponder handleKeyDown:event];
+ return [self.eventsResponder handleKey:event];
}];
-
}
return self;