diff options
author | Akemi <der.richter@gmx.de> | 2017-03-26 20:32:04 +0200 |
---|---|---|
committer | Akemi <der.richter@gmx.de> | 2017-03-26 20:38:26 +0200 |
commit | 063ca8f0fe48c281944c5307b1e8bbb11bb22822 (patch) | |
tree | 210cdaf74546f6578fbcedd47610f31773fe685a /osdep/macosx_compat.h | |
parent | f8a223b7aca08491e22438df0f1ea233d602907c (diff) | |
download | mpv-063ca8f0fe48c281944c5307b1e8bbb11bb22822.tar.bz2 mpv-063ca8f0fe48c281944c5307b1e8bbb11bb22822.tar.xz |
osx: fix key input in certain circumstances
for a reason i can just assume some key events can vanish from the
event chain and mpv seems unresponsive.
after quite some testing i could confirm that the events are present at
the first entry point of the event chain, the sendEvent method of the
Application, and that they vanish at a point afterwards. now we use
that entry point to grab keyDown and keyUp events. we also stop
propagating those key events to prevent the no key input' error sound.
if we ever need the key events somewhere down the event chain we need
to start propagating them again. though this is not necessary currently.
Diffstat (limited to 'osdep/macosx_compat.h')
-rw-r--r-- | osdep/macosx_compat.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/osdep/macosx_compat.h b/osdep/macosx_compat.h index 06b8cbd175..1cb5018382 100644 --- a/osdep/macosx_compat.h +++ b/osdep/macosx_compat.h @@ -37,8 +37,6 @@ static const NSEventType NSEventTypeSystemDefined = NSSystemDefined; static const NSEventType NSEventTypeKeyDown = NSKeyDown; static const NSEventType NSEventTypeKeyUp = NSKeyUp; -static const NSEventMask NSEventMaskKeyDown = NSKeyDownMask; -static const NSEventMask NSEventMaskKeyUp = NSKeyUpMask; static const NSEventMask NSEventMaskLeftMouseUp = NSLeftMouseUpMask; #if (MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_10) |