Spread.Sheets Documentation
Changing the Default Input Map

You can change the default key actions.

Using Code

This example changes default up and down actions to page up and page down when changing the active cell.

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

//Change the default Up arrow key action to "Page Up" for the active cell.
 spread.commandManager().setShortcutKey("navigationPageUp", GC.Spread.Commands.Key.up, false, false, false, false);
 //Change the default Down arrow key action to "Page Down" for the active cell.
 spread.commandManager().setShortcutKey("navigationPageDown", GC.Spread.Commands.Key.down, false, false, false, false);
});
See Also

Developer's Guide

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.