SpreadJS Documentation
removeKeyMap Method
The unicode for the key.
true if the action uses the Ctrl key; otherwise, false.
true if the action uses the Shift key; otherwise, false.
true if the action uses the Alt key; otherwise, false.
true if the action uses the Command key on the Macintosh or the Windows key on Microsoft Windows; otherwise, false.
Removes the shortcut key for the specified action.
Syntax
var instance = new GcSpread.Sheets.Sheet(name);
var value; // Type: any
value = instance.removeKeyMap(keyCode, ctrl, shift, alt, meta);
function removeKeyMap( 
   keyCode : number,
   ctrl : boolean,
   shift : boolean,
   alt : boolean,
   meta : boolean
) : any;

Parameters

keyCode
The unicode for the key.
ctrl
true if the action uses the Ctrl key; otherwise, false.
shift
true if the action uses the Shift key; otherwise, false.
alt
true if the action uses the Alt key; otherwise, false.
meta
true if the action uses the Command key on the Macintosh or the Windows key on Microsoft Windows; otherwise, false.
Example
This example removes the key mapping for the up and down arrow keys.
var activeSheet = spread.getActiveSheet();
//Deactivate Up key when moving cell up.
activeSheet.removeKeyMap(GcSpread.Sheets.Key.up, false, false, false, false);
//Deactivate Down key when moving cell down.
activeSheet.removeKeyMap(GcSpread.Sheets.Key.down, false, false, false, false);
See Also

Reference

Sheet type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.