fix ctrl v terminal
This commit is contained in:
parent
d031911ada
commit
764a24ba30
1 changed files with 0 additions and 4 deletions
|
|
@ -184,10 +184,6 @@ export function initializeTerminalComponent() {
|
||||||
// Copy and paste functionality
|
// Copy and paste functionality
|
||||||
this.term.attachCustomKeyEventHandler((arg) => {
|
this.term.attachCustomKeyEventHandler((arg) => {
|
||||||
if (arg.ctrlKey && arg.code === "KeyV" && arg.type === "keydown") {
|
if (arg.ctrlKey && arg.code === "KeyV" && arg.type === "keydown") {
|
||||||
navigator.clipboard.readText()
|
|
||||||
.then(text => {
|
|
||||||
this.socket.send(JSON.stringify({ message: text }));
|
|
||||||
});
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue