prevent FF from double-handling clicks, fixes #1232

This commit is contained in:
tophf 2021-04-20 07:21:58 +03:00
parent 711f6502b5
commit afcd8ebcf4

View File

@ -87,6 +87,7 @@ const Events = {
async external(event) {
// Not handling Shift-click - the built-in 'open in a new window' command
if (getEventKeyName(event) !== 'Shift-MouseL') {
event.preventDefault(); // Prevent FF from double-handling the event
const {index} = await getOwnTab();
openURL({
url: event.target.closest('a').href,