diff --git a/machotkeywrapper.mm b/machotkeywrapper.mm index 4de47e82..9b8f53cd 100644 --- a/machotkeywrapper.mm +++ b/machotkeywrapper.mm @@ -21,7 +21,9 @@ void createMapping() { if( mapping == NULL ) { - TISInputSourceRef inputSourceRef = TISCopyCurrentKeyboardInputSource(); + TISInputSourceRef inputSourceRef = TISCopyInputSourceForLanguage( CFSTR( "en" ) ); + if ( !inputSourceRef ) + inputSourceRef = TISCopyCurrentKeyboardInputSource(); if ( !inputSourceRef ) return;