-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Address review comments related to the keyboard shortcuts refactor: #19395
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,24 @@ | ||
/** @typedef {import('@wordpress/keycodes').WPKeycodeModifier} WPKeycodeModifier */ | ||
|
||
/** | ||
* Keyboard key combination. | ||
* | ||
* @typedef {Object} WPShortcutKeyCombination | ||
* | ||
* @property {string} character Character. | ||
* @property {string} [modifier] Modifier. | ||
* @property {string} character Character. | ||
* @property {WPKeycodeModifier|undefined} modifier Modifier. | ||
Comment on lines
-6
to
+9
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change was a bit unfortunate, I found. The previous It only (correctly) flags an error when trying to use a modifier method on |
||
*/ | ||
|
||
/** | ||
* Configuration of a registered keyboard shortcut. | ||
* | ||
* @typedef {Object} WPShortcutConfig | ||
* | ||
* @property {string} name Shortcut name. | ||
* @property {string} category Shortcut category. | ||
* @property {string} description Shortcut description. | ||
* @property {WPShortcutKeyCombination} keyCombination Shortcut key combination. | ||
* @property {WPShortcutKeyCombination[]} [aliases] Shortcut aliases. | ||
* @property {string} name Shortcut name. | ||
* @property {string} category Shortcut category. | ||
* @property {string} description Shortcut description. | ||
* @property {WPShortcutKeyCombination} keyCombination Shortcut key combination. | ||
* @property {WPShortcutKeyCombination[]} [aliases] Shortcut aliases. | ||
*/ | ||
|
||
/** | ||
|
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.
Related: #18045