1
1
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:
Eugene Pankov 2018-04-24 16:01:05 +02:00
parent cdfd84a7f8
commit 8432e3ef66

View File

@ -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')
}