If AWT/Swing app displays several windows and an user changes the keyboard 
layout and then closes the focused window, the app does not keep the keyboard 
layout changes.

It is necessary to sync currentLocale and Windows keyboard layout values in 
`WInputMethod` class before component activation.

-------------

Commit messages:
 - 8324491: Keyboard layout did not keep it state if it was changed when dialog 
is active

Changes: https://git.openjdk.org/jdk/pull/22411/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=22411&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8324491
  Stats: 5 lines in 1 file changed: 4 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/22411.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/22411/head:pull/22411

PR: https://git.openjdk.org/jdk/pull/22411

Reply via email to