MamoruDS / obsidian-open-link-with

Open external link with specific brower in Obsidian
MIT License
32 stars 3 forks source link

[minor bug] tab receiving active focus when clicked #22

Open hannesdelbeke opened 1 year ago

hannesdelbeke commented 1 year ago

when clicking on the content of a tabbed note, that note becomes active and takes up full space in obsidian if it was partly hidden by another note.

however when clicking on the content of a site, opened in a tab with this plugin, then this does not happen

this bug is a low priority bug IMO and doesn't strongly affect my use of this amazing plugin

hannesdelbeke commented 1 year ago
image

when i click on the tab header, indicated by the green checkmark, then the tab becomes active and takes up full space. when i click on the site content, indicated by the red cross, then the tab doesn't change width

MamoruDS commented 1 year ago

This is definitely expected behavior, but it's a bit difficult to implement because I can't get the focus event for the iframe. One option is to use the blur event when focus leaves the non-iframe area, like the editor. However, this approach might not work if you're jumping from one iframe to another because that won't trigger a blur event.