Skip to content

8324491: Keyboard layout didn't keep its state if it was changed when dialog was active #22411

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

dmarkov20
Copy link
Member

@dmarkov20 dmarkov20 commented Nov 27, 2024

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.


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

  • JDK-8324491: Keyboard layout didn't keep its state if it was changed when dialog was active (Bug - P3)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/22411/head:pull/22411
$ git checkout pull/22411

Update a local copy of the PR:
$ git checkout pull/22411
$ git pull https://git.openjdk.org/jdk.git pull/22411/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 22411

View PR using the GUI difftool:
$ git pr show -t 22411

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/22411.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Nov 27, 2024

👋 Welcome back dmarkov! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Nov 27, 2024

@dmarkov20 This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

After integration, the commit message for the final commit will be:

8324491: Keyboard layout didn't keep its state if it was changed when dialog was active

Reviewed-by: aivanov, azvegint

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 111 new commits pushed to the master branch:

  • f37f64d: 8343736: Test java/awt/Focus/UnaccessibleChoice/AccessibleChoiceTest.java failed: Choice can't be controlled by keyboard
  • 73b8b34: 8344368: IndependenceSwingTest.java and IndependenceAWTTest.java failed: Selected text & clipboard contents differs
  • 9267dfa: 8344589: Update IANA Language Subtag Registry to Version 2024-11-19
  • 293323c: 8340141: C1: rework ciMethod::equals following 8338471
  • 76e874c: 8345319: Fix the tag type in PoolEntry and AnnotationValue
  • e9f6ba0: 8345293: Fix generational Shenandoah with compact headers
  • e1910f2: 8345397: Remove from g1HeapRegionRemSet.cpp
  • 3c60f0b: 8345296: AArch64: VM crashes with SIGILL when prctl is disallowed
  • 3eaa761: 8342086: FileInputStream.available() fails with "Incorrect function" for "nul" path (win)
  • 60bd73a: 8342089: Require --enable-native-access to be the same between CDS dump time and run time
  • ... and 101 more: https://git.openjdk.org/jdk/compare/494806286f126b29b7fc6eb217fa2ae26f295072...master

As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@openjdk openjdk bot added the rfr Pull request is ready for review label Nov 27, 2024
@openjdk
Copy link

openjdk bot commented Nov 27, 2024

@dmarkov20 The following labels will be automatically applied to this pull request:

  • client
  • i18n

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing lists. If you would like to change these labels, use the /label pull request command.

@openjdk openjdk bot added client client-libs-dev@openjdk.org i18n i18n-dev@openjdk.org labels Nov 27, 2024
@mlbridge
Copy link

mlbridge bot commented Nov 27, 2024

Webrevs

@dmarkov20
Copy link
Member Author

Looking for volunteers to review the fix.
Thanks in advance

Copy link
Member

@aivanov-jdk aivanov-jdk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

The keyboard layout is preserved after closing the dialog. I used SwingSet2 and Show Input Dialog to test the changes.

@dmarkov20 dmarkov20 changed the title 8324491: Keyboard layout did not keep it state if it was changed when dialog is active 8324491: Keyboard layout didn't keep its state if it was changed when dialog was active Dec 3, 2024
@openjdk openjdk bot added the ready Pull request is ready to be integrated label Dec 3, 2024
@dmarkov20
Copy link
Member Author

/integrate

@openjdk
Copy link

openjdk bot commented Dec 3, 2024

Going to push as commit 2be07b5.
Since your change was applied there have been 111 commits pushed to the master branch:

  • f37f64d: 8343736: Test java/awt/Focus/UnaccessibleChoice/AccessibleChoiceTest.java failed: Choice can't be controlled by keyboard
  • 73b8b34: 8344368: IndependenceSwingTest.java and IndependenceAWTTest.java failed: Selected text & clipboard contents differs
  • 9267dfa: 8344589: Update IANA Language Subtag Registry to Version 2024-11-19
  • 293323c: 8340141: C1: rework ciMethod::equals following 8338471
  • 76e874c: 8345319: Fix the tag type in PoolEntry and AnnotationValue
  • e9f6ba0: 8345293: Fix generational Shenandoah with compact headers
  • e1910f2: 8345397: Remove from g1HeapRegionRemSet.cpp
  • 3c60f0b: 8345296: AArch64: VM crashes with SIGILL when prctl is disallowed
  • 3eaa761: 8342086: FileInputStream.available() fails with "Incorrect function" for "nul" path (win)
  • 60bd73a: 8342089: Require --enable-native-access to be the same between CDS dump time and run time
  • ... and 101 more: https://git.openjdk.org/jdk/compare/494806286f126b29b7fc6eb217fa2ae26f295072...master

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Dec 3, 2024
@openjdk openjdk bot closed this Dec 3, 2024
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Dec 3, 2024
@openjdk
Copy link

openjdk bot commented Dec 3, 2024

@dmarkov20 Pushed as commit 2be07b5.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client client-libs-dev@openjdk.org i18n i18n-dev@openjdk.org integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

3 participants