Once you’ve done the above, delete everything above this line.
Steps to reproduce
With the default plugin template plus this code snippet in onload
:
document.addEventListener('auxclick', function (event) {
var clickedElement = event.target;
console.log('Aux clicked text:', event);
});
And the plugin loaded into sandbox (or established Obsidian install).
Open the console, right click around, and see when auxclick events are generated.
Did you follow the troubleshooting guide? Y
Y, sandbox plus code mentioned aboveExpected result
auxclick events to be triggered every time the user right clicksActual result
- Right (aux) clicking regular text triggers an auxclick event.
- Right clicking a link opens the context menu, but does not trigger an auxclick event
- Right clicking the same link with the context window open (double right clicking the link) does trigger an auxclick event.
- Right clicking another link with the context window open does not trigger an auxclick event.
- Right clicking regular text with the context window open does trigger an auxclick event.
Environment
SYSTEM INFO:
Obsidian version: v1.4.13
Installer version: v1.4.13
Operating system: Windows 10 Pro 10.0.19045
Login status: not logged in
Insider build toggle: off
Live preview: on
Legacy editor: off
Base theme: dark
Community theme: none
Snippets enabled: 0
Restricted mode: off
Plugins installed: 1
Plugins enabled: 1
1: Sample Plugin v1.0.0
RECOMMENDATIONS:
Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.