Commit 7eaa5792 authored by ibuler's avatar ibuler

[Update] 修改复制粘贴

parent e512e9cd
...@@ -48,14 +48,14 @@ export class ElementSshTermComponent implements OnInit, OnDestroy { ...@@ -48,14 +48,14 @@ export class ElementSshTermComponent implements OnInit, OnDestroy {
}); });
this.view.Term = this.term; this.view.Term = this.term;
this.term.attachCustomKeyEventHandler(e => { this.term.attachCustomKeyEventHandler(e => {
if (e.ctrlKey && e.key == 'c' && term.hasSelection()) { if (e.ctrlKey && e.key === 'c' && this.term.hasSelection()) {
return false; return false;
} }
if (e.ctrlKey && e.key == 'v') { if (e.ctrlKey && e.key === 'v') {
return false; return false;
} }
return true; return true;
}) });
} }
changeWinSize(size: Array<number>) { changeWinSize(size: Array<number>) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment