diff options
author | torque <torque@1> | 2015-02-16 21:50:57 -0800 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-02-18 00:03:16 +0100 |
commit | 3b269ac0a04b7575a8ab1a6665d75fc0d0e8589e (patch) | |
tree | 9b637249e3225cebe664724280a30918c0e7a8a3 /video/out/cocoa | |
parent | fa9b587426d7bd350d92afdb440c396336b2ecfd (diff) | |
download | mpv-3b269ac0a04b7575a8ab1a6665d75fc0d0e8589e.tar.bz2 mpv-3b269ac0a04b7575a8ab1a6665d75fc0d0e8589e.tar.xz |
input: add MOUSE_ENTER keybinding.
Signed-off-by: wm4 <wm4@nowhere>
Diffstat (limited to 'video/out/cocoa')
-rw-r--r-- | video/out/cocoa/events_view.m | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/video/out/cocoa/events_view.m b/video/out/cocoa/events_view.m index 620de19f84..d6ba9e0ff5 100644 --- a/video/out/cocoa/events_view.m +++ b/video/out/cocoa/events_view.m @@ -173,6 +173,9 @@ - (void)mouseEntered:(NSEvent *)event { [super mouseEntered:event]; + if ([self.adapter mouseEnabled]) { + [self.adapter putKey:MP_KEY_MOUSE_ENTER withModifiers:0]; + } } - (void)mouseExited:(NSEvent *)event |