File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
Flow.Launcher.Infrastructure Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -51,4 +51,9 @@ WM_EXITSIZEMOVE
51
51
GetKeyboardLayout
52
52
GetWindowThreadProcessId
53
53
ActivateKeyboardLayout
54
- GetKeyboardLayoutList
54
+ GetKeyboardLayoutList
55
+
56
+ PostMessage
57
+ HWND_BROADCAST
58
+ WM_INPUTLANGCHANGEREQUEST
59
+ INPUTLANGCHANGE_FORWARD
Original file line number Diff line number Diff line change @@ -403,7 +403,11 @@ public static void RestorePreviousKeyboardLayout()
403
403
{
404
404
if ( _previousLayout == HKL . Null ) return ;
405
405
406
- PInvoke . ActivateKeyboardLayout ( _previousLayout , 0 ) ;
406
+ PInvoke . PostMessage ( HWND . HWND_BROADCAST ,
407
+ PInvoke . WM_INPUTLANGCHANGEREQUEST ,
408
+ PInvoke . INPUTLANGCHANGE_FORWARD ,
409
+ _previousLayout . Value
410
+ ) ;
407
411
_previousLayout = HKL . Null ;
408
412
}
409
413
You can’t perform that action at this time.
0 commit comments