Keyboard Shortcut Descriptors are used by the KeyboardWidget and within Tiddlers tagged to link actions with a keyboard combination
A Keyboard Shortcut Descriptor has the following format:
ctrl+enter
ctrl+shift+alt+A
alt-shift-T
alt-SpaceIt can have multiple Key combinations:
ctrl+enter alt+shift+A ctrl+alt+9 alt-Space ctrl-BackspaceThere are two ways Keyboard Shortcut Descriptors can be used:
- directly
- passing the attribute
key="ctrl-enter"to the KeyboardWidget - setting
ctrl-enteras the value of thekeyfield in a Tiddler tagged
- passing the attribute
- with a reference to a configuration Tiddler
- A configuration Tiddler for Keyboard Shortcuts follows some naming rules:
- The title starts with
$:/config/ - Followed by either the string
shortcutsor one of the following platform descriptors:shortcuts-linuxshortcuts-not-linuxshortcuts-macshortcuts-not-macshortcuts-windowsshortcuts-not-windows
- The title ends with another
/followed by a suffix that can be chosen freely- This suffix is the identifier for the
Keyboard Shortcut Descriptor(A)
- This suffix is the identifier for the
- The title starts with
- The reference to the configuration Tiddler is made of
((+ the identifier (A) +))- Example:
((my-shortcut))is the reference to these configuration Tiddlers:
- Example:
- Finally, the referenced configuration Tiddler stores the Keyboard Shortcut Descriptor in its text field
- A configuration Tiddler for Keyboard Shortcuts follows some naming rules: