Mac-specific: Fix hotkeys when non-english keyboard layout selected

This commit is contained in:
Abs62 2013-05-21 17:49:23 +04:00
parent 2d11703c0b
commit 9e2f9f79f0

View file

@ -21,7 +21,9 @@ void createMapping()
{ {
if( mapping == NULL ) if( mapping == NULL )
{ {
TISInputSourceRef inputSourceRef = TISCopyCurrentKeyboardInputSource(); TISInputSourceRef inputSourceRef = TISCopyInputSourceForLanguage( CFSTR( "en" ) );
if ( !inputSourceRef )
inputSourceRef = TISCopyCurrentKeyboardInputSource();
if ( !inputSourceRef ) if ( !inputSourceRef )
return; return;