Unstage open post in new tab changes, oops
parent
f4327aff69
commit
b2ef6bde00
|
@ -229,19 +229,14 @@ function onPressInner(
|
||||||
} else if (
|
} else if (
|
||||||
!e.defaultPrevented && // onPress prevented default
|
!e.defaultPrevented && // onPress prevented default
|
||||||
// @ts-ignore Web only -prf
|
// @ts-ignore Web only -prf
|
||||||
!(e.metaKey || e.altKey || e.shiftKey) && // ignore clicks with modifier keys
|
!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) && // ignore clicks with modifier keys
|
||||||
// @ts-ignore Web only -prf
|
// @ts-ignore Web only -prf
|
||||||
(e.button == null || e.button === 0) && // ignore everything but left clicks
|
(e.button == null || e.button === 0) && // ignore everything but left clicks
|
||||||
// @ts-ignore Web only -prf
|
// @ts-ignore Web only -prf
|
||||||
[undefined, null, '', 'self'].includes(e.currentTarget?.target) // let browser handle "target=_blank" etc.
|
[undefined, null, '', 'self'].includes(e.currentTarget?.target) // let browser handle "target=_blank" etc.
|
||||||
) {
|
) {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
if (e.ctrlKey && Platform.OS === 'web') {
|
shouldHandle = true
|
||||||
shouldHandle = false
|
|
||||||
window.open(href, '_blank')
|
|
||||||
} else {
|
|
||||||
shouldHandle = true
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (shouldHandle) {
|
if (shouldHandle) {
|
||||||
|
|
Loading…
Reference in New Issue