设计器是不带快捷键的,如果您需要指定快捷键可以通过代码注册对应的命令。例如- var command = {
- canUndo: true,
- execute: function (spread, options, isUndo) {
- var Commands = GC.Spread.Sheets.Commands;
- if (isUndo) {
- Commands.undoTransaction(spread, options);
- return true;
- } else {
- Commands.startTransaction(spread, options);
- sheet.setSelection(-1, -1, -1, -1);
- Commands.endTransaction(spread, options);
- return true;
- }
- }
- };
- spread.commandManager().register("select", command);
- spread.commandManager().setShortcutKey("select", GC.Spread.Commands.Key.a, true, false, false, false);
复制代码
|