8187635: On Windows Swing changes keyboard layout on a window activation
authordmarkov
Wed, 28 Feb 2018 22:00:33 +0000
changeset 49214 838c11e59a38
parent 49105 cd1d231b2c33
child 49215 0ce74d78f58c
8187635: On Windows Swing changes keyboard layout on a window activation Reviewed-by: serb, ssadetsky
src/java.desktop/windows/native/libawt/windows/awt_Component.cpp
--- a/src/java.desktop/windows/native/libawt/windows/awt_Component.cpp	Wed Feb 28 14:29:37 2018 +0530
+++ b/src/java.desktop/windows/native/libawt/windows/awt_Component.cpp	Wed Feb 28 22:00:33 2018 +0000
@@ -1828,6 +1828,7 @@
                           "new = 0x%08X",
                           GetHWnd(), GetClassName(), (UINT)lParam);
           mr = WmInputLangChange(static_cast<UINT>(wParam), reinterpret_cast<HKL>(lParam));
+          g_bUserHasChangedInputLang = TRUE;
           CallProxyDefWindowProc(message, wParam, lParam, retValue, mr);
           // should return non-zero if we process this message
           retValue = 1;