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 f37f64d commit 2be07b5Copy full SHA for 2be07b5
src/java.desktop/windows/classes/sun/awt/windows/WInputMethod.java
@@ -1,5 +1,5 @@
1
/*
2
- * Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2024, Oracle and/or its affiliates. All rights reserved.
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
*
5
* This code is free software; you can redistribute it and/or modify it
@@ -319,6 +319,10 @@ public void activate() {
319
isLastFocussedActiveClient = isAc;
320
}
321
isActive = true;
322
+
323
+ // Sync currentLocale with the Windows keyboard layout which could be changed
324
+ // while the component was inactive.
325
+ getLocale();
326
if (currentLocale != null) {
327
setLocale(currentLocale, true);
328
0 commit comments