Merge pull request #3812 from LEstradioto/fix-ctrl-v-terminal

fix ctrl v terminal
This commit is contained in:
Andras Bacsai authored and GitHub committed 2024-10-10 14:06:00 +02:00
commit e1ff2118f0
1 file changed
-4
-4
View File
@@ -184,10 +184,6 @@ export function initializeTerminalComponent() {
// Copy and paste functionality
this.term.attachCustomKeyEventHandler((arg) => {
if (arg.ctrlKey && arg.code === "KeyV" && arg.type === "keydown") {
navigator.clipboard.readText()
.then(text => {
this.socket.send(JSON.stringify({ message: text }));
});
return false;
}