6817009: Action.SELECTED_KEY not toggled when using key binding#12253
6817009: Action.SELECTED_KEY not toggled when using key binding#12253prsadhuk wants to merge 2 commits intoopenjdk:masterfrom
Conversation
|
👋 Welcome back psadhukhan! A progress list of the required criteria for merging this PR into |
Webrevs
|
|
@prsadhuk This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration! |
jayathirthrao
left a comment
There was a problem hiding this comment.
Apart from jtreg test comment, other changes looks good.
Verified regression test also.
|
@prsadhuk 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: 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 1189 new commits pushed to the
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 |
|
/integrate |
|
Going to push as commit e2cfcfb.
Your commit was automatically rebased without conflicts. |
When the Action.SELECTED_KEY property action is assigned to ToggleButton and an accelerator key binding is mapped to the action, then pressing the accelerator key binding does not toggle the toggle button.
This is because SwingUtilities.notifyAction does not fire itemStateChanged event for such action related to SELECTED_KEY.
Fix is to get the Action.SELECTED_KEY command/action and fire itemStateChanged Event via JToggleButton.setSelected() call to notify propertyChange listener of the toggled property.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/12253/head:pull/12253$ git checkout pull/12253Update a local copy of the PR:
$ git checkout pull/12253$ git pull https://git.openjdk.org/jdk.git pull/12253/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 12253View PR using the GUI difftool:
$ git pr show -t 12253Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/12253.diff