Wijmo UI for the Web
GetKeyActionName Method
- The specified keyCode will be checked.
- The shortcuts string passed from the server side.
Parse the shortcutsString and judge whether the key user pressed is a shortcutkey defined by deveploper. not replace indexOf, substring method, because autotest is slow
Syntax
Javascript (Usage) 
var instance = new wijmo.input.BaseUIProcess();
var value; // Type: any

// Parameters
var keyCode; // Type:  any
var strShortcut; // Type:  any

value = instance.GetKeyActionName(keyCode, strShortcut);
Javascript (Specification) 
function GetKeyActionName( 
   keyCode : any,
   strShortcut : any
) : any;

Parameters

keyCode
- The specified keyCode will be checked.
strShortcut
- The shortcuts string passed from the server side.

Return Value

Returns the shortcut's keyAction Name if contains the specified keyCode action; else return null.
Browser Compatibility
7
5
5

See Also

Reference

BaseUIProcess type

 

 


© 2013 All Rights Reserved.

Send comments on this topic.