Skip to content

Commit da3a0d1

Browse files
If you select text and do ctrl-c browser copies the selection to clipboard. ctrl-shift-v is for paste.
1 parent 1dccea0 commit da3a0d1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

public/wetty/hterm.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6954,7 +6954,8 @@ hterm.Terminal.prototype.onPaste_ = function(e) {
69546954
* React when the user tries to copy from the scrollPort.
69556955
*/
69566956
hterm.Terminal.prototype.onCopy_ = function(e) {
6957-
e.preventDefault();
6957+
/* comment this line so that browser copies the selection */
6958+
// e.preventDefault();
69586959
setTimeout(this.copySelectionToClipboard.bind(this), 0);
69596960
};
69606961

0 commit comments

Comments
 (0)