-
Notifications
You must be signed in to change notification settings - Fork 58
Feature: Keyboard shortcuts on press of ? key #678
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
base: main
Are you sure you want to change the base?
Conversation
auniverseaway
left a comment
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.
I would opt for a less heavy handed approach to this. The current implementation would bring down performance of the editor for what is effectively a nice-to-have for people who go looking for this feature.
- It does not need to be a ProseMirror Plugin.
- This should be system wide and cover all views.
- This should be gated by the question mark (help) modal.
- This should be defined by content, not code.
Thank you for the valuable feedback. I’ve made some updates and I’m not sure if I’ve covered all the points but please let me know if anything needs changing or improving. |
|
When I said "This should be gated by the question mark (help) modal." I guess I should have clarified...
Regarding the JSON / Web Component
You may have some hoops you need to jump through to access the content of the help modal. If you do, Slack one of us on da-dev and we can help. Thanks again for working on this. |
Keyboard Shortcuts Help Modal
Overview
Adds a keyboard shortcuts help modal that opens when users press
?anywhere in the appChanges
Reverted: Previous tooltip-based approach
menu.jsandlinkItem.jsDesign Decisions
?How It Works
?(when not typing in an input/editor)?,ESC, or close button⌘on Mac,Ctrlon Windows/LinuxTesting
?key in browse view?key in edit view (when editor not focused)?types normally when focused in editor/inputs?, buttons)Related Issue
#677
Motivation and Context
This change makes hidden keyboard shortcuts discoverable and learnable.
How Has This Been Tested?
https://keyboard-shortcut--da-live--thomsebastin.aem.page/edit#/aem-sandbox/block-collection/shortcuts
Screenshots (if appropriate):
shortcuts.mov
Types of changes
Checklist: