-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Editor action refactoring #887
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
With the new version of `diagram-js`, the keyboard listeners receive a single parameter which is an object with `KeyboardEvent` event as the only property. `BpmnKeyBindings` needed to change in order to make use of new version of API.
`KeyboardEvent.keyCode` is deprecated, so the BpmnKeyBindings will use non-deprecated `KeyboardEvent.key` instead.
* Treat features as optional dependencies and register action only if feature exists * Explicitly add features to the Modeler and NavigatedViewer types
* only register keyboard bindings that are backed by actual editor actions * rename BpmnKeyBindings -> BpmnKeyboardBindings for parity with diagram-js@latest * sub-class and override _keyboardBindings_ service provided by diagram-js * extend spec to verify default actions
* event got renamed to keyEvent in context passed to keyboard listeners
barmac
force-pushed
the
editor-action-refactoring
branch
from
October 29, 2018 14:35
8d8d2a8
to
eadef0d
Compare
ghost
assigned barmac
Oct 29, 2018
Added |
barmac
approved these changes
Oct 29, 2018
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This was referenced Oct 29, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This builds upon bpmn-io/diagram-js#295.
Refactors the editor actions to be independent from actual editor (or viewer) features, as discussed with @barmac.
Core features:
NavigatedViewer
andModeler
This superseeds #886, if merged.