mirror of
https://github.com/bingohuang/docker-labs.git
synced 2025-10-04 01:17:49 +08:00
Add copy shortcuts
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user