Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.

...

Codeblock
themeEclipse
languagehtml/xml
titleshortcuts section:
<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
themeEclipse
languagehtml/xmljavascript
titlegeneral configuration
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
themeEclipse
languagehtml/xmljavascript
titleshortcuts registration (user-defined config)bindingConf example
{"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
themeEclipse
languagejavascript
titlebindingConf example
{"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:

iddescription
newAdd a new list entry
copyCopy the selected list entry
deleteDelete the selected list entry
moveUpMove the selected list entry up
moveDownMove 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)