museeks icon indicating copy to clipboard operation
museeks copied to clipboard

Middle Mouse Click UI Improvements

Open Futureglobe opened this issue 9 years ago • 3 comments

First thing: LOOOOOL.

I was totally unaware of this! This is definitely a bug, thank you for the report :)

for the record, it's the case for all links (<Link ...>)

martpie avatar Sep 05 '17 14:09 martpie

@YurySolovyov I only found this solution https://stackoverflow.com/questions/44578022/electron-prevent-middle-click, I don't know if you have a better idea. I would have expected something at the Electron level.

martpie avatar Sep 05 '17 15:09 martpie

nevermind

mainWindow.webContents.on('new-window', (event) => {
  event.preventDefault();
});

seems to do the trick

martpie avatar Sep 05 '17 15:09 martpie