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

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
themeEclipse
languagejavascript
titlebindingConf example
{"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
themeEclipse
languagejavascript
titlelist related configuration
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.