github/hotkey

Can support for Open in new tab ?

Closed this issue ยท 2 comments

dnknn commented

For details, please click to seeing to ๐Ÿ‘‡
Mottie/GitHub-userscripts#123

muan commented

hotkey simply calls click, so this is not its concern. Where a link is opened should be handled by the element it clicks on, for example, <a target="_blank">.

hotkey/src/utils.ts

Lines 16 to 22 in 0691586

export function fireDeterminedAction(el: HTMLElement): void {
if (isFormField(el)) {
el.focus()
} else {
el.click()
}
}

dnknn commented

Thank you very much for your reply!