File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Flow.Launcher.Infrastructure Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -381,7 +381,9 @@ public static unsafe void SwitchToEnglishKeyboardLayout(bool backupPrevious)
381381 var threadId = PInvoke . GetWindowThreadProcessId ( PInvoke . GetForegroundWindow ( ) ) ;
382382 if ( threadId == 0 ) throw new Win32Exception ( Marshal . GetLastWin32Error ( ) ) ;
383383
384- // If the current layout has an IME mode, disable it without switching to another layout
384+ // If the current layout has an IME mode, disable it without switching to another layout.
385+ // This is needed because for languages with IME mode, Flow Launcher just temporarily disables
386+ // the IME mode instead of switching to another layout.
385387 var currentLayout = PInvoke . GetKeyboardLayout ( threadId ) ;
386388 var currentLayoutCode = ( uint ) currentLayout . Value & KeyboardLayoutLoWord ;
387389 if ( ImeLanguageIds . Contains ( currentLayoutCode ) )
You can’t perform that action at this time.
0 commit comments