summaryrefslogtreecommitdiffstats
path: root/video/out/cocoa/events_view.m
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/cocoa/events_view.m')
-rw-r--r--video/out/cocoa/events_view.m8
1 files changed, 8 insertions, 0 deletions
diff --git a/video/out/cocoa/events_view.m b/video/out/cocoa/events_view.m
index 744c3f27c7..6de24c470c 100644
--- a/video/out/cocoa/events_view.m
+++ b/video/out/cocoa/events_view.m
@@ -130,6 +130,14 @@
- (BOOL)becomeFirstResponder { return YES; }
- (BOOL)resignFirstResponder { return YES; }
+- (void)keyDown:(NSEvent *)event {
+ [self.adapter putKeyEvent:event];
+}
+
+- (void)keyUp:(NSEvent *)event {
+ [self.adapter putKeyEvent:event];
+}
+
- (BOOL)canHideCursor
{
return !self.hasMouseDown && [self containsMouseLocation];