The keyboard shortcut handler component uses the Javascript library Mousetrap (https://github.com/ccampbell/mousetrap).
Inhalt |
---|
Installation
...
To use the keyboard shortcuts handling, the following JavaScript resources must be included in the header of the used HTML template where all the other JavaScript libraries are defined (e.g. templates/Root.html):
...
If no searchGlobalList param is passed, it's default value "true" is taken in place.
System Variables
To simplify the configuration of the shortcuts, the system variable shortcutConfig can be used within the javascript call.
Codeblock | ||||||
---|---|---|---|---|---|---|
| ||||||
registerListShortcuts('${shortcutConfig}', true); |
The variable shortcutConfig can be configured with the following options:
- Declaration with the config key jaxfront.html.shortcuts.keyConfiguration within the jaxfront.xml config file
- Setup throug the Global-Definitions with the function setShortcutKeyConfiguratio(String) of GlobalDefinition.java
Supported keys/shortcuts
The shortcuts should be defined as combination like "alt+n", with the plus as seperator.
...