mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix the issue with not being able to switch back to the original keyboard layout in OnDeactivated
This commit is contained in:
parent
747f9582c3
commit
cd28c09c09
2 changed files with 11 additions and 2 deletions
|
|
@ -51,4 +51,9 @@ WM_EXITSIZEMOVE
|
||||||
GetKeyboardLayout
|
GetKeyboardLayout
|
||||||
GetWindowThreadProcessId
|
GetWindowThreadProcessId
|
||||||
ActivateKeyboardLayout
|
ActivateKeyboardLayout
|
||||||
GetKeyboardLayoutList
|
GetKeyboardLayoutList
|
||||||
|
|
||||||
|
PostMessage
|
||||||
|
HWND_BROADCAST
|
||||||
|
WM_INPUTLANGCHANGEREQUEST
|
||||||
|
INPUTLANGCHANGE_FORWARD
|
||||||
|
|
|
||||||
|
|
@ -403,7 +403,11 @@ namespace Flow.Launcher.Infrastructure
|
||||||
{
|
{
|
||||||
if (_previousLayout == HKL.Null) return;
|
if (_previousLayout == HKL.Null) return;
|
||||||
|
|
||||||
PInvoke.ActivateKeyboardLayout(_previousLayout, 0);
|
PInvoke.PostMessage(HWND.HWND_BROADCAST,
|
||||||
|
PInvoke.WM_INPUTLANGCHANGEREQUEST,
|
||||||
|
PInvoke.INPUTLANGCHANGE_FORWARD,
|
||||||
|
_previousLayout.Value
|
||||||
|
);
|
||||||
_previousLayout = HKL.Null;
|
_previousLayout = HKL.Null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue