...
Codeblock | ||||||
---|---|---|---|---|---|---|
| ||||||
initShortcuts(shortcutHolderClass, bindingConf, searchGlobal); |
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-holder-div")
bindingConf (String)
For the mapping of the shortcut keys, each shortcut can be paired with an html element id which holds the action called by the fired shortcut.
Codeblock | ||||||
---|---|---|---|---|---|---|
| ||||||
{"newLI":"alt+n", "cpLI":"alt+k", "delLI":"alt+r"} |
searchGlobal (boolean, [optional])
Boolean parameter which indicates if the focused field is not within the shortcutHolderClass, the shortcuts should be searched document wide instead.
If no searchGlobal param is passed, it's default value "true" is taken in place.
Configuration for list related shortcuts
...
Codeblock | ||||||
---|---|---|---|---|---|---|
| ||||||
registerListShortcuts(simplifiedConf, searchGlobalList); |
simplifiedConf (String, [optional])
JSON-String for mapping each list function to a corresponding key. ("function" : "key kombination")
...
id | description |
---|---|
new | Add a new list entry |
copy | Copy the selected list entry |
delete | Delete the selected list entry |
moveUp | Move the selected list entry up |
moveDown | Move the selected list entry down |
If no simplifiedConf param is passed, the following default value is taken in place:
{"new":"alt+ctrl+n", "copy":"alt+ctrl+c", "delete":"alt+ctrl+d", "moveUp":"alt+ctrl+up", "moveDown":"alt+ctrl+down"}
searchGlobalList (boolean, [optional])
Boolean parameter which indicates if the focus is not within a list, the first list in the view should be applied if available instead.
If no searchGlobalList param is passed, it's default value "true" is taken in place.
Supported keys/shortcuts
...