diff --git a/www/assets/app.js b/www/assets/app.js index a75872f..13e4fc2 100644 --- a/www/assets/app.js +++ b/www/assets/app.js @@ -226,6 +226,14 @@ cursorBlink: false }); + term.attachCustomKeydownHandler(function (e) { + // Ctrl + Alt + C + if (e.ctrlKey && e.altKey && (e.keyCode == 67)) { + document.execCommand('copy'); + return false; + } + }); + term.open(terminalContainer); // Set geometry during the next tick, to avoid race conditions.