Commit 7eaa5792 authored by ibuler's avatar ibuler

[Update] 修改复制粘贴

parent e512e9cd
......@@ -48,14 +48,14 @@ export class ElementSshTermComponent implements OnInit, OnDestroy {
});
this.view.Term = this.term;
this.term.attachCustomKeyEventHandler(e => {
if (e.ctrlKey && e.key == 'c' && term.hasSelection()) {
return false;
if (e.ctrlKey && e.key === 'c' && this.term.hasSelection()) {
return false;
}
if (e.ctrlKey && e.key == 'v') {
return false;
if (e.ctrlKey && e.key === 'v') {
return false;
}
return true;
})
});
}
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