The default shortcuts extension.
Shortcut values are stored in the setting system. The default values for each shortcut are preset in the settings schema file of this extension. Additionally, each shortcut can be individually set by the end user by modifying its setting (either in the text editor or by modifying its underlying JSON schema file).
When setting shortcut selectors, there are two concepts to consider:
specificity and matchability. These two interact in sometimes
counterintuitive ways. Keyboard events are triggered from an element and
they propagate up the DOM until they reach the
When a registered shortcut sequence is fired, the shortcut manager checks the node that fired the event and each of its ancestors until a node matches one or more registered selectors. The first matching selector in the chain of ancestors will invoke the shortcut handler and the traversal will end at that point. If a node matches more than one selector, the handler for whichever selector is more specific fires.
Generated using TypeDoc