mirror of
https://github.com/pulse-browser/browser.git
synced 2024-09-11 12:45:43 +03:00
✨ Middle clicking blank space in vertical tabs works
See suggestion in #137
This commit is contained in:
parent
cd8aac3572
commit
f1e1868177
@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
## 1.0.0-a.77
|
||||
|
||||
### Feature
|
||||
|
||||
- Vertical tabs: Open new tab w/ clipboard contents on space middle click
|
||||
|
||||
### Fixed
|
||||
|
||||
- Pinned vertical tabs are no longer positioned. Sorta defeats their purpose, but it stops a semi-major bug
|
||||
|
@ -114,6 +114,12 @@ var VerticalTabs = {
|
||||
this.enableVerticalTabs()
|
||||
}
|
||||
|
||||
// Cause middle click to open a new tab
|
||||
this.arrowScrollbox?.addEventListener('click', (event) => {
|
||||
if (event.button != 1 || event.target != this.arrowScrollbox) return
|
||||
gBrowser.handleNewTabMiddleClick(this.arrowScrollbox, event)
|
||||
})
|
||||
|
||||
this._initialized = true
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user