SpreadJS Documentation
KeyMap Constructor
The key code.The key code.
Whether the Ctrl key is pressed.Whether the Ctrl key is pressed.
Whether the Shift key is pressed.Whether the Shift key is pressed.
Whether the Alt key is pressed.Whether the Alt key is pressed.
Whether the Command key on the Macintosh or the Windows key on Microsoft Windows is pressed.
The function to be invoked.The function to be invoked.
Represents a key map, which maps a key event to a Spread action.
Syntax
var instance = new GcSpread.Sheets.KeyMap(key, ctrl, shift, alt, meta, action);
function KeyMap( 
   key : Key,
   ctrl : boolean,
   shift : boolean,
   alt : boolean,
   meta : boolean,
   action : GcSpread.Sheets.Function
) : KeyMap;

Parameters

key
The key code.The key code.
ctrl
Whether the Ctrl key is pressed.Whether the Ctrl key is pressed.
shift
Whether the Shift key is pressed.Whether the Shift key is pressed.
alt
Whether the Alt key is pressed.Whether the Alt key is pressed.
meta
Whether the Command key on the Macintosh or the Windows key on Microsoft Windows is pressed.
action
The function to be invoked.The function to be invoked.
See Also

Reference

KeyMap type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.