mirror of
https://github.com/Eugeny/tabby
synced 2024-11-15 17:28:06 +00:00
middle click to paste (fixes #613)
This commit is contained in:
parent
4e4d8a0e91
commit
38cfb3f036
1 changed files with 6 additions and 0 deletions
|
@ -199,6 +199,12 @@ export class BaseTerminalTabComponent extends BaseTabComponent implements OnInit
|
|||
|
||||
this.frontend.mouseEvent$.subscribe(async event => {
|
||||
if (event.type === 'mousedown') {
|
||||
if (event.which === 2) {
|
||||
this.paste()
|
||||
event.preventDefault()
|
||||
event.stopPropagation()
|
||||
return
|
||||
}
|
||||
if (event.which === 3) {
|
||||
if (this.config.store.terminal.rightClick === 'menu') {
|
||||
this.hostApp.popupContextMenu(await this.buildContextMenu())
|
||||
|
|
Loading…
Reference in a new issue