mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +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 )
|
if( mapping == NULL )
|
||||||
{
|
{
|
||||||
TISInputSourceRef inputSourceRef = TISCopyCurrentKeyboardInputSource();
|
TISInputSourceRef inputSourceRef = TISCopyInputSourceForLanguage( CFSTR( "en" ) );
|
||||||
|
if ( !inputSourceRef )
|
||||||
|
inputSourceRef = TISCopyCurrentKeyboardInputSource();
|
||||||
if ( !inputSourceRef )
|
if ( !inputSourceRef )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue