Skip to content
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

8314968: Public InputMap #1254

Conversation

andy-goryachev-oracle
Copy link
Contributor

@andy-goryachev-oracle andy-goryachev-oracle commented Oct 3, 2023

Summary:

  • public InputMap, KeyBinding, BehaviorBase in javafx.scene.control.behavior package
  • InputMap allows for adding key mappings on control (user-defined) and behavior (defined by the skin) levels
  • two stage mapping: key binding -> function tag -> function; enables a wide range of control customization (in some cases even without subclassing behavior classes)

For more detailed introduction, see
https://github.com/andy-goryachev-oracle/Test/blob/ag.jep.input.map.v2/doc/InputMap/InputMapV2.md

A number of Controls has been converted to use the new InputMap implementation:

  • ColorPicker
  • ComboBox
  • DatePicker
  • PasswordField
  • TextArea
  • TextField

This PR requires #1221 to go in first.


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

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 1254

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jfx/pull/1254.diff

Webrev

Link to Webrev Comment

@andy-goryachev-oracle andy-goryachev-oracle marked this pull request as ready for review October 13, 2023 16:17
@openjdk openjdk bot added the rfr Ready for review label Oct 13, 2023
@mlbridge
Copy link

mlbridge bot commented Oct 13, 2023

Webrevs

@andy-goryachev-oracle andy-goryachev-oracle marked this pull request as draft October 26, 2023 20:20
@openjdk openjdk bot removed the rfr Ready for review label Oct 26, 2023
@satsen
Copy link

satsen commented Nov 2, 2023

This is great, I once had to implement selection logic for normal labels (I never actually finished all the cases because it was just too hard with all the private API) and this would have been helpful to have.

@bridgekeeper
Copy link

bridgekeeper bot commented Dec 28, 2023

@andy-goryachev-oracle This pull request has been inactive for more than 8 weeks and will be automatically closed if another 8 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!

@openjdk
Copy link

openjdk bot commented Feb 12, 2024

@andy-goryachev-oracle this pull request can not be integrated into master due to one or more merge conflicts. To resolve these merge conflicts and update this pull request you can run the following commands in the local repository for your personal fork:

git checkout 8314968.input.map
git fetch https://git.openjdk.org/jfx.git master
git merge FETCH_HEAD
# resolve conflicts and follow the instructions given by git merge
git commit -m "Merge master"
git push

@openjdk openjdk bot added the merge-conflict Pull request has merge conflict with target branch label Feb 12, 2024
@openjdk openjdk bot removed the merge-conflict Pull request has merge conflict with target branch label Feb 12, 2024
@openjdk openjdk bot added the merge-conflict Pull request has merge conflict with target branch label Feb 22, 2024
@openjdk openjdk bot removed the merge-conflict Pull request has merge conflict with target branch label Feb 22, 2024
@andy-goryachev-oracle
Copy link
Contributor Author

Closing this pull request in favor of the updated one. Many thanks to everyone who provided the feedback!

@openjdk openjdk bot added the merge-conflict Pull request has merge conflict with target branch label Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge-conflict Pull request has merge conflict with target branch
Development

Successfully merging this pull request may close these issues.

2 participants