Spread.Sheets Documentation > Sample Code > Sample Code for Keyboard and Input Maps > Creating a Custom Action Map |
You can create a custom action map.
This example creates a custom action map for the Enter key.
JavaScript |
Copy Code
|
---|---|
var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"),{sheetCount:3}); spread.commandManager().register('myCmd', //Map the created action to the Enter key. |