mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +00:00
Mac-specific: Fix hotkeys when non-english keyboard layout selected
This commit is contained in:
parent
2d11703c0b
commit
9e2f9f79f0
|
@ -21,7 +21,9 @@ void createMapping()
|
|||
{
|
||||
if( mapping == NULL )
|
||||
{
|
||||
TISInputSourceRef inputSourceRef = TISCopyCurrentKeyboardInputSource();
|
||||
TISInputSourceRef inputSourceRef = TISCopyInputSourceForLanguage( CFSTR( "en" ) );
|
||||
if ( !inputSourceRef )
|
||||
inputSourceRef = TISCopyCurrentKeyboardInputSource();
|
||||
if ( !inputSourceRef )
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in a new issue