feat(app): middle click to open new tab (#36215)

This commit is contained in:
Aarav Sareen
2026-07-13 17:23:55 +08:00
committed by GitHub
parent dd02cea9e7
commit 97f502e79a
3 changed files with 46 additions and 7 deletions
@@ -1,10 +1,13 @@
export function shouldOpenSessionInBackground(input: {
button: number
mac: boolean
meta: boolean
ctrl: boolean
shift: boolean
alt: boolean
}) {
if (input.button === 1) return true
if (input.button !== 0) return false
if (input.shift || input.alt) return false
if (input.mac) return input.meta && !input.ctrl
return input.ctrl && !input.meta