jfx icon indicating copy to clipboard operation
jfx copied to clipboard

8314968: Public InputMap (v3)

Open andy-goryachev-oracle opened this issue 1 year ago • 15 comments

Summary

Add the InputMap property in the Control class which enables customization of controls with the application key mappings and event handlers, and to guarantee specific order of event handlers invocation and priority of application mappings over those created by the skin.

Add SkinInputMap and optional BehaviorBase classes to simplify creation of skins for existing and new controls.

Goals

The goals of this proposal are:

  • allow for customization of a control behavior by changing the existing or adding new key mappings
  • support dynamic modification of key mappings
  • allow for accessing the default functionality even when it was overwritten by the application
  • allow for reverting customization to the default implementation
  • guarantee priorities between the application and the skin event handlers and key mappings
  • allow for gradual migration of the existing controls to use the new InputMap
  • support stateful and stateless (fully static) behavior implementations

Non-Goals

It is not the goal of this proposal:

  • to require specific base class for the behavior implementations
  • to allow for complete decoupling of the skin from the behavior
  • to make the legacy internal InputMap class public
  • to make existing core behaviors public

Complete proposal: https://github.com/andy-goryachev-oracle/Test/blob/main/doc/InputMap/InputMapV3.md


Progress

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

Issue

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 1495

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

Using diff file

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

andy-goryachev-oracle avatar Jul 05 '24 15:07 andy-goryachev-oracle

:wave: Welcome back angorya! 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.

bridgekeeper[bot] avatar Jul 05 '24 15:07 bridgekeeper[bot]

❗ This change is not yet ready to be integrated. See the Progress checklist in the description for automated requirements.

openjdk[bot] avatar Jul 05 '24 15:07 openjdk[bot]

@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!

bridgekeeper[bot] avatar Aug 30 '24 15:08 bridgekeeper[bot]

keep alive

andy-goryachev-oracle avatar Sep 03 '24 16:09 andy-goryachev-oracle

@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.v3
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[bot] avatar Oct 22 '24 14:10 openjdk[bot]

@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!

bridgekeeper[bot] avatar Oct 30 '24 23:10 bridgekeeper[bot]

@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!

bridgekeeper[bot] avatar Oct 31 '24 05:10 bridgekeeper[bot]

@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!

bridgekeeper[bot] avatar Oct 31 '24 11:10 bridgekeeper[bot]

keep-alive.

andy-goryachev-oracle avatar Nov 01 '24 17:11 andy-goryachev-oracle

@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!

bridgekeeper[bot] avatar Dec 27 '24 19:12 bridgekeeper[bot]

keep-alive

andy-goryachev-oracle avatar Jan 06 '25 16:01 andy-goryachev-oracle

@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!

bridgekeeper[bot] avatar Mar 03 '25 17:03 bridgekeeper[bot]

keep-alive

andy-goryachev-oracle avatar Mar 03 '25 17:03 andy-goryachev-oracle

@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!

bridgekeeper[bot] avatar Apr 28 '25 18:04 bridgekeeper[bot]

keep-alive

andy-goryachev-oracle avatar Apr 28 '25 18:04 andy-goryachev-oracle

@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 issue a /touch or /keepalive command to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

bridgekeeper[bot] avatar Jun 23 '25 19:06 bridgekeeper[bot]

/touch

andy-goryachev-oracle avatar Jun 24 '25 14:06 andy-goryachev-oracle

@andy-goryachev-oracle The pull request is being re-evaluated and the inactivity timeout has been reset.

openjdk[bot] avatar Jun 24 '25 14:06 openjdk[bot]

@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 issue a /touch or /keepalive command to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

bridgekeeper[bot] avatar Sep 11 '25 21:09 bridgekeeper[bot]

/touch

andy-goryachev-oracle avatar Sep 11 '25 21:09 andy-goryachev-oracle

@andy-goryachev-oracle The pull request is being re-evaluated and the inactivity timeout has been reset.

openjdk[bot] avatar Sep 11 '25 21:09 openjdk[bot]

@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 issue a /touch or /keepalive command to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

bridgekeeper[bot] avatar Nov 07 '25 03:11 bridgekeeper[bot]

/touch

andy-goryachev-oracle avatar Nov 07 '25 15:11 andy-goryachev-oracle

@andy-goryachev-oracle The pull request is being re-evaluated and the inactivity timeout has been reset.

openjdk[bot] avatar Nov 07 '25 15:11 openjdk[bot]

/keepalive

andy-goryachev-oracle avatar Nov 07 '25 17:11 andy-goryachev-oracle

@andy-goryachev-oracle The pull request is being re-evaluated and the inactivity timeout has been reset.

openjdk[bot] avatar Nov 07 '25 17:11 openjdk[bot]