禁用粘贴复制快捷键如下:
spread.commandManager().setShortcutKey(null, GC.Spread.Commands.Key.c, true, false, false, false);
spread.commandManager().setShortcutKey(null, GC.Spread.Commands.Key.v, true, false, false, false);
启用粘贴复制快捷键的代码该如何写那?
如下写,不生效,还是启用不了粘贴和复制,望求助
spread.commandManager().setShortcutKey(null, GC.Spread.Commands.Key.c, false, false, false, false);
spread.commandManager().setShortcutKey(null, GC.Spread.Commands.Key.v, false, false, false, false);
|
|