Skip to content

Commit

Permalink
Merge pull request #3812 from LEstradioto/fix-ctrl-v-terminal
Browse files Browse the repository at this point in the history
fix ctrl v terminal
  • Loading branch information
andrasbacsai authored Oct 10, 2024
2 parents ee54ecd + 764a24b commit e1ff211
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 e1ff211

Please sign in to comment.