summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2015-02-28 14:50:06 +0100
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2015-02-28 14:55:32 +0100
commit03a69bac95ce4e15016138104cd198a6a60c38cd (patch)
treea1be2c97e53e2320c6b126786a14545a19634825 /video
parent721e430cd2da16e0802781171a3cedb3849eec24 (diff)
downloadmpv-03a69bac95ce4e15016138104cd198a6a60c38cd.tar.bz2
mpv-03a69bac95ce4e15016138104cd198a6a60c38cd.tar.xz
cocoa: remove the setNextKeyView hack
Just use makeFirstResponder on the mpv events view from client code if you need the built in keyboard events (this is easier for dealing with view nesting).
Diffstat (limited to 'video')
-rw-r--r--video/out/cocoa_common.m4
1 files changed, 0 insertions, 4 deletions
diff --git a/video/out/cocoa_common.m b/video/out/cocoa_common.m
index 8d1e0ef653..4e3c461eaa 100644
--- a/video/out/cocoa_common.m
+++ b/video/out/cocoa_common.m
@@ -380,10 +380,6 @@ static void create_ui(struct vo *vo, struct mp_rect *win, int geo_flags)
s->view = view;
[parent addSubview:s->view];
- // insert ourselves as the next key view so that clients can give key
- // focus to the mpv view by calling -[NSWindow selectNextKeyView:]
- [parent setNextKeyView:s->view];
-
#if HAVE_COCOA_APPLICATION
cocoa_register_menu_item_action(MPM_H_SIZE, @selector(halfSize));
cocoa_register_menu_item_action(MPM_N_SIZE, @selector(normalSize));