From 462e6f281a66ad8d8bfcfc9a342d365ccc28121f Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 30 Aug 2013 19:46:48 +0200 Subject: 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). --- osdep/macosx_application.m | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'osdep/macosx_application.m') 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; -- cgit v1.2.3