keyboardShortcut 命令将尝试触发一个具有给定名称的 ShortcutEvent。
keyboardShortcut
name: String
要触发的快捷方式名称。
editor.commands.keyboardShortcut('undo')