mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Clarify why not switch keyboard layout for languages that have IME mode
This commit is contained in:
parent
382d0c2bfe
commit
48aff32f1b
1 changed files with 3 additions and 1 deletions
|
|
@ -381,7 +381,9 @@ namespace Flow.Launcher.Infrastructure
|
|||
var threadId = PInvoke.GetWindowThreadProcessId(PInvoke.GetForegroundWindow());
|
||||
if (threadId == 0) throw new Win32Exception(Marshal.GetLastWin32Error());
|
||||
|
||||
// If the current layout has an IME mode, disable it without switching to another layout
|
||||
// If the current layout has an IME mode, disable it without switching to another layout.
|
||||
// This is needed because for languages with IME mode, Flow Launcher just temporarily disables
|
||||
// the IME mode instead of switching to another layout.
|
||||
var currentLayout = PInvoke.GetKeyboardLayout(threadId);
|
||||
var currentLayoutCode = (uint)currentLayout.Value & KeyboardLayoutLoWord;
|
||||
if (ImeLanguageIds.Contains(currentLayoutCode))
|
||||
|
|
|
|||
Loading…
Reference in a new issue