paranext / paranext-core

Electron client, extension host, and C# library for Paranext
https://paranext.github.io/paranext-core/
MIT License
17 stars 2 forks source link

When launching unique dialogs / tabs, bring them into focus #1279

Open Sebastian-ubs opened 5 hours ago

Sebastian-ubs commented 5 hours ago

User Story As a user, I want to receive feedback on doing an action (like clicking a menu entry) also for tabs / dialogs that are unique, so that I can see where I have to focus to continue my workflow.

Description See https://discord.com/channels/1064938364597436416/1304396273142730772 If current (may be hidden behind other tabs)

tjcouch-sil commented 4 hours ago

Regarding anything around "active tab" and focus, we do not currently have anything for this. This is a very complex and difficult subject. It is unfortunately very challenging to track focus on an iframe.

See #662

javascript - Setting focus to iframe contents - Stack Overflow

javascript - Detecting when an iframe gets or loses focus - Stack Overflow

Edit fiddle - JSFiddle - Code Playground