We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf011f1 commit 382d0c2Copy full SHA for 382d0c2
Flow.Launcher.Infrastructure/NativeMethods.txt
@@ -54,6 +54,5 @@ ActivateKeyboardLayout
54
GetKeyboardLayoutList
55
56
PostMessage
57
-HWND_BROADCAST
58
WM_INPUTLANGCHANGEREQUEST
59
INPUTLANGCHANGE_FORWARD
Flow.Launcher.Infrastructure/Win32Helper.cs
@@ -403,7 +403,9 @@ public static void RestorePreviousKeyboardLayout()
403
{
404
if (_previousLayout == HKL.Null) return;
405
406
- PInvoke.PostMessage(HWND.HWND_BROADCAST,
+ var hwnd = PInvoke.GetForegroundWindow();
407
+ PInvoke.PostMessage(
408
+ hwnd,
409
PInvoke.WM_INPUTLANGCHANGEREQUEST,
410
PInvoke.INPUTLANGCHANGE_FORWARD,
411
_previousLayout.Value
0 commit comments