mirror of
https://github.com/bingohuang/docker-labs.git
synced 2025-07-14 01:57:32 +08:00
Add copy shortcuts
This commit is contained in:
parent
92aa3aa3f8
commit
93740dc9f5
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user