Spread.Sheets Documentation
Deactivating the Default Input Map
Spread.Sheets Documentation > Sample Code > Sample Code for Keyboard and Input Maps > Deactivating the Default Input Map

You can deactivate default key actions.

Using Code

This example removes the default up and down arrow key actions.

JavaScript
Copy Code
$(document).ready(function () {
    var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"),{sheetCount:3});
    var activeSheet = spread.getActiveSheet();

var manager = spread.commandManager();
var upKey = manager.setShortcutKey(undefined, GC.Spread.Commands.Key.up, false, false, false, false);
var downKey = manager.setShortcutKey(undefined, GC.Spread.Commands.Key.down, false, false, false, false);
});
See Also

Developer's Guide