SpreadJS Documentation
Deactivating Clipboard Keys
SpreadJS Documentation > Sample Code > Sample Code Using the Clipboard > Deactivating Clipboard Keys

You can deactivate Clipboard actions.

Using Code

This example cancels the default cut, copy, and paste keys.

JavaScript
Copy Code

window.onload = function(){
          var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"),{sheetCount:3});
          var activeSheet = spread.getActiveSheet();
spread.commandManager().setShortcutKey(undefined, GC.Spread.Commands.Key.c, true, false, false, false);
spread.commandManager().setShortcutKey(undefined, GC.Spread.Commands.Key.v, true, false, false, false);
spread.commandManager().setShortcutKey(undefined, GC.Spread.Commands.Key.x, true, false, false, false);

}

See Also

Developer's Guide