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

[FEAT] Add a plugin to translate/scroll the diagram with keyboard keys #167

Open
Tracked by #171
tbouffard opened this issue Nov 14, 2023 · 0 comments
Open
Tracked by #171
Labels
enhancement New feature or request

Comments

@tbouffard
Copy link
Member

tbouffard commented Nov 14, 2023

Describe the solution you'd like

Provide a KeysScrollPlugin that let scroll the diagram with the arrow keys of the keyboard.
The scroll will work when the focus is on the BPMN container.
This should work when the BPMN container has scrollbars

Additional context

In the future, we may let the user configure the keys (and even configure several keys to do the scroll).

We will probably use https://github.com/jgraph/mxgraph/blob/v4.2.2/javascript/src/js/handler/mxKeyHandler.js#L66
We may have to ensure there is a single instance of mxKeyHandler attached to the graph, so we may have to store a shared instance to ensure all plugins use the same instance.

@tbouffard tbouffard added the enhancement New feature or request label Nov 14, 2023
@tbouffard tbouffard changed the title [FEAT] Add a plugin to translate/scroll the diagram with keys [FEAT] Add a plugin to translate/scroll the diagram with keyboard keys Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant