feat(video-card): command + click always open on new tab

This commit is contained in:
Hakadao
2024-10-21 01:40:30 +08:00
parent b968fb9128
commit 3ee00e6c19

View File

@@ -205,7 +205,7 @@ function handelMouseLeave() {
function handleClick(event: MouseEvent) {
videoCurrentTime.value = getCurrentTime()
if (settings.value.videoCardLinkOpenMode === 'drawer' && videoUrl.value && !event.ctrlKey) {
if (settings.value.videoCardLinkOpenMode === 'drawer' && videoUrl.value && !event.ctrlKey && !event.metaKey) {
event.preventDefault()
openIframeDrawer(videoUrl.value)