|
@@ -104,19 +104,19 @@ export default {
|
|
if (e && e.key == "Control") {
|
|
if (e && e.key == "Control") {
|
|
// 按 ctrl
|
|
// 按 ctrl
|
|
that.scene.isDownCtrl = false;
|
|
that.scene.isDownCtrl = false;
|
|
- this.scene.setCmd = "choice";
|
|
|
|
|
|
+ that.scene.setCmd = "choice";
|
|
}
|
|
}
|
|
if(e && e.key == "Meta" && isMac){
|
|
if(e && e.key == "Meta" && isMac){
|
|
// 如果为苹果键
|
|
// 如果为苹果键
|
|
that.scene.isDownCtrl = false;
|
|
that.scene.isDownCtrl = false;
|
|
- this.scene.setCmd = "choice";
|
|
|
|
|
|
+ that.scene.setCmd = "choice";
|
|
}
|
|
}
|
|
};
|
|
};
|
|
// 监听粘贴事件
|
|
// 监听粘贴事件
|
|
- // document.onpaste = e =>{
|
|
|
|
- // const text = e.clipboardData.getData('Text')
|
|
|
|
- // this.scene.crossPagePaste(text)
|
|
|
|
- // }
|
|
|
|
|
|
+ document.onpaste = e =>{
|
|
|
|
+ const text = e.clipboardData.getData('Text')
|
|
|
|
+ this.scene.crossPagePaste(text)
|
|
|
|
+ }
|
|
// 自动保存(时间差为一分钟)
|
|
// 自动保存(时间差为一分钟)
|
|
this.autoSave = setInterval(() => {
|
|
this.autoSave = setInterval(() => {
|
|
this.saveMsgNoMessage();
|
|
this.saveMsgNoMessage();
|