|
@@ -326,7 +326,8 @@ export async function createLyricsBtn(geniusUrl?: string, hideIfLoading = true)
|
|
const url = linkElem.href ?? geniusUrl;
|
|
const url = linkElem.href ?? geniusUrl;
|
|
if(!url || e instanceof MouseEvent)
|
|
if(!url || e instanceof MouseEvent)
|
|
return;
|
|
return;
|
|
- openInTab(url);
|
|
|
|
|
|
+ if(!e.ctrlKey && !e.altKey)
|
|
|
|
+ openInTab(url);
|
|
}, {
|
|
}, {
|
|
preventDefault: false,
|
|
preventDefault: false,
|
|
stopPropagation: false,
|
|
stopPropagation: false,
|
|
@@ -337,7 +338,7 @@ export async function createLyricsBtn(geniusUrl?: string, hideIfLoading = true)
|
|
onInteraction(linkElem, async (e) => {
|
|
onInteraction(linkElem, async (e) => {
|
|
if(e.ctrlKey || e.altKey) {
|
|
if(e.ctrlKey || e.altKey) {
|
|
e.preventDefault();
|
|
e.preventDefault();
|
|
- e.stopPropagation();
|
|
|
|
|
|
+ e.stopImmediatePropagation();
|
|
|
|
|
|
const search = await showPrompt({ type: "prompt", message: t("open_lyrics_search_prompt") });
|
|
const search = await showPrompt({ type: "prompt", message: t("open_lyrics_search_prompt") });
|
|
if(search && search.length > 0)
|
|
if(search && search.length > 0)
|