...
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 general
To enable the keyboard shortcuts handling, the shortcuts must be registered in the main HTML template .with the function:
Codeblock | ||||||
---|---|---|---|---|---|---|
| ||||||
initShortcuts(shortcutHolderClass, bindingConf); |
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)
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"} |
Configuration list related shortcuts
To enable the keyboard shortcuts handling, the shortcuts 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)
bindingConf (String)
JSON-String for mapping each list function to a corresponding key. ("function" : "key kombination")
Codeblock | ||||||
---|---|---|---|---|---|---|
| ||||||
{"new<script type="text/javascript" language="JavaScript" defer="defer"> registerShortcuts('{"newLI":"alt+n", "cpLIcopy":"alt+k", "delLIdelete":"alt+r", "mvDLImoveUp":"alt+u", "mvUpLImoveDown":"alt+i"}', true); </script> |
Available id's are:
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 |
searchGlobal (boolean)
Boolean parameter which defines 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)