In a issue I recently raised [IDEA] Last saved timestamp and what it may enable #6684 an incidental idea came to me, if there a method by which we could detect a users return to a tab or window in which a tiddlywiki is loaded? Ie the tiddlywiki gets focus.
I do not have the developer knowledge to know how to determine if this is possible for any application/website, let alone TiddlyWiki.
The idea would be to trigger a custom action when a tiddlywiki receives focus.
- This would then allow the time now to be compared with last loaded and last saved (proposed) timestamps and trigger different responses. See #6684
- This would complement existing start-up actions and timestamps.
It is possible to trigger an action after a timeout in a tab, but I am not sure if they will take place of the tab does not have the focus.