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