mirror of
https://github.com/Eugeny/tabby.git
synced 2025-09-24 09:06:03 +00:00
remove selection after copying using smart Ctrl-C
This commit is contained in:
@@ -93,6 +93,7 @@ export class TerminalTabComponent extends BaseTabComponent {
|
|||||||
case 'ctrl-c':
|
case 'ctrl-c':
|
||||||
if (this.hterm.getSelectionText()) {
|
if (this.hterm.getSelectionText()) {
|
||||||
this.hterm.copySelectionToClipboard()
|
this.hterm.copySelectionToClipboard()
|
||||||
|
this.hterm.getDocument().getSelection().removeAllRanges()
|
||||||
} else {
|
} else {
|
||||||
this.sendInput('\x03')
|
this.sendInput('\x03')
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user