[vlc-commits] macosx: fix handling of shortcuts which include shift

David Fuhrmann git at videolan.org
Tue Jul 3 14:42:55 CEST 2012


vlc/vlc-2.0 | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Tue Jul  3 13:28:20 2012 +0200| [b9ada9b92d9ecd3f93b6767bb696fab1c95eccdd] | committer: Felix Paul Kühne

macosx: fix handling of shortcuts which include shift
(cherry picked from commit 837e3ea601dc4d84c66dacd0dff5a8a250b9302f)

Signed-off-by: Felix Paul Kühne <fkuehne at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=b9ada9b92d9ecd3f93b6767bb696fab1c95eccdd
---

 modules/gui/macosx/intf.m |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 7bac8c5..3cfc359 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -1327,7 +1327,7 @@ unsigned int CocoaKeyToVLC( unichar i_key )
         val.i_int |= KEY_MODIFIER_COMMAND;
     }
 
-    key = [[o_event charactersIgnoringModifiers] characterAtIndex: 0];
+    key = [[[o_event charactersIgnoringModifiers] lowercaseString] characterAtIndex: 0];
 
     /* handle Lion's default key combo for fullscreen-toggle in addition to our own hotkeys */
     if( key == 'f' && i_pressed_modifiers & NSControlKeyMask && i_pressed_modifiers & NSCommandKeyMask )



More information about the vlc-commits mailing list