修复alt+z无法换行的bug

This commit is contained in:
fofolee 2024-02-19 11:38:43 +08:00
parent ea2e873525
commit cd152e4c88

View File

@ -228,7 +228,7 @@ export default {
monaco.KeyMod.Alt | monaco.KeyCode.KeyZ,
() => {
that.wordWrap = that.wordWrap === "off" ? "on" : "off";
that.rawEditor.updateOptions({ wordWrap: that.wordWrap });
that.rawEditor().updateOptions({ wordWrap: that.wordWrap });
}
);
// ctrl + s
@ -238,7 +238,7 @@ export default {
that.$emit("keyStroke", "save");
}
);
// ctrl + space console.log
// ctrl + e console.log
this.rawEditor().addCommand(
monaco.KeyMod.CtrlCmd | monaco.KeyCode.KeyE,
() => {