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

kie-issues#793: The keyboard shortcuts panel doesn't show the new DMN Editor keyboard shortcuts #2279

Merged
merged 9 commits into from
May 6, 2024

Conversation

ljmotta
Copy link
Contributor

@ljmotta ljmotta commented Apr 30, 2024

Closes: apache/incubator-kie-issues#793

Description

Move the keyboard shortcuts to the DMN Editor envelope.

keyboard-shortcuts.mp4

@ljmotta ljmotta self-assigned this Apr 30, 2024
Copy link
Contributor

@jomarko jomarko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current state of the PR seems to work fine also the listed shortcuts! Many thanks ! Some shortcuts are totally new for me!

Copy link
Contributor

@tiagobento tiagobento left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simple change on the default behavior for shortcuts... Not sure if it makes sense, though. I always prefer throwing than silently failing, though.

Anyway, also please create an issue for tests to be added to each shortcut individually. Thanks @ljmotta. Great implementation!

Comment on lines 49 to 61
hideFromDrd: () => {},
toggleHierarchyHighlight: () => {},
togglePropertiesPanel: () => {},
createGroup: () => {},
selectAll: () => {},
panDown: () => {},
panUp: () => {},
paste: () => {},
copy: () => {},
cut: () => {},
cancelAction: () => {},
focusOnSelection: () => {},
resetPosition: () => {},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe the default should be throwing an error? I mean, none of these should ever be a no-op.

@jomarko
Copy link
Contributor

jomarko commented May 6, 2024

if there is a ticket/epic for tests, please share a link with us, thank you @ljmotta

@ljmotta
Copy link
Contributor Author

ljmotta commented May 6, 2024

@jomarko @tiagobento I've incorporated the review and I've created the issue apache/incubator-kie-issues#1155

@tiagobento tiagobento changed the title kie-issue-793: The keyboard shortcuts panel doesn't show the new DMN Editor keyboard shortcuts kie-issues#793: The keyboard shortcuts panel doesn't show the new DMN Editor keyboard shortcuts May 6, 2024
@tiagobento tiagobento merged commit c31e274 into apache:main May 6, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

The keyboard shortcuts panel doesn't show the new DMN Editor keyboard shortcuts
3 participants