- let CtrlB = {
- canUndo: false,
- execute: function (context, options, isUndo) {
- let Commands = GC.Spread.Sheets.Commands;
- if (isUndo) {
- Commands.undoTransaction(context, options);
- return true;
- } else {
- Commands.startTransaction(context, options);
- GC.Spread.Sheets.Designer.getCommand(GC.Spread.Sheets.Designer.CommandNames.FontWeight).execute(Designer);
- // GC.Spread.Sheets.Designer.getCommand(GC.Spread.Sheets.Designer.CommandNames.FindDialogFind).execute(Designer);
- Commands.endTransaction(context, options);
- return true;
- }
- }
- };
复制代码 根据教程写了一个快捷键 FindDialogFind 是可以使用的 但是 FontWeight 却不生效
|
|