diff options
Diffstat (limited to 'osdep/macosx_application.m')
-rw-r--r-- | osdep/macosx_application.m | 5 |
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; |