OnHotKeyPressed Event



 
Fires when a hotkey has been pressed.


Syntax

    SiteKiosk.LocaleManager.OnHotKeyPressed = handler
    
Parameters
    name String that contains the name of the hotkey.
Remarks
    The object that caused the event can be referenced in the event function using "this".

    Hotkeys can be defined in the hotkey xml file. The path of this file is saved in the registry (HKEY_LOCAL_MACHINE\SOFTWARE\PROVISIO\SiteKiosk\HotKeyFile). This event fires for hotkeys of the type 17 only.

    Example:

    <hotkeys>
      <hotkey type='17' vkey='91' sound='0'>
        <name>Windows key</name>
      </hotkey>
    </hotkeys>
    
Examples
    The following example shows an alert window when a hotkey has been pressed.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    SiteKiosk.LocaleManager.OnHotKeyPressed = OnHotKeyPressed;
    function OnHotKeyPressed(name)
    {
       alert(name);
    }
    </SCRIPT>
    

Applies to
    SiteKiosk v6.6 (and later versions).

Back to top