...
Codeblock | ||||||
---|---|---|---|---|---|---|
| ||||||
<script language="JavaScript" src="js/jquery/plugins/mousetrap.min.js" type="text/javascript"></script> <script language="JavaScript" src="js/jquery/plugins/shortcuts.js" type="text/javascript"></script> |
Configuration
If the configuration is loaded properly, the registered shortcuts will be visible on the tooltip informations of the concerned actions (if a link is provided within the visualizer component)
The following configurations are possible:
Configuration general
To enable the keyboard shortcuts handling, the shortcuts must be registered in the main HTML template with the function:
...
Codeblock | ||||||
---|---|---|---|---|---|---|
| ||||||
{"newLI":"alt+n", "cpLI":"alt+k", "delLI":"alt+r"} |
Configuration for list related shortcuts
To enable the keyboard shortcuts handling , for a list component the shortcuts could be registered with a list related constructor, which must be registered in the main HTML template.
The following parameters are available:
shortcutHolderClass (String)
String which holds the class defining the starting point of an element for searching the shortcuts actions. (e.g. for lists the class is jax-list-general)
:
Codeblock | ||||||
---|---|---|---|---|---|---|
| ||||||
registerListShortcuts(simplifiedConf, searchGlobal); |
simplifiedConf bindingConf (String)
JSON-String for mapping each list function to a corresponding key. ("function" : "key kombination")
...
searchGlobal (boolean)
Boolean parameter which defines indicates if the which holds the class defining the starting point of an element for searching the shortcuts actions. (e.g. for lists the class is jax-list-general) the focus is not within a list, the first list in the view should be applied if available instead.