Skip to content

Commit

Permalink
fix ctrl v terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
LEstradioto committed Oct 9, 2024
1 parent d031911 commit 764a24b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions resources/js/terminal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 764a24b

Please sign in to comment.