mirror of
https://github.com/mpv-player/mpv
synced 2025-01-02 04:42:10 +00:00
cocoa: enqueue events only if input context is present
This commit is contained in:
parent
a5183a761c
commit
04caddb7c8
@ -159,7 +159,8 @@ void cocoa_uninit_media_keys(void) {
|
||||
|
||||
void cocoa_put_key(int keycode)
|
||||
{
|
||||
mp_input_put_key(mpv_shared_app().inputContext, keycode);
|
||||
if (mpv_shared_app().inputContext)
|
||||
mp_input_put_key(mpv_shared_app().inputContext, keycode);
|
||||
}
|
||||
|
||||
void cocoa_put_key_with_modifiers(int keycode, int modifiers)
|
||||
|
Loading…
Reference in New Issue
Block a user