ID:2835121
 
Applies to:DM Language
Status: Open

Issue hasn't been assigned a status value.
Currently, there is an on-focus & on-blur parameter, however, they are locked to the input control only which limits their usefulness to a sort of tight degree.

In the current state, there's no easy way to translate over that usability without constantly polling winget for the focus parameter.

Since it already exists for the input element, being able to potentially have on-focus and on-blur for most, if not, every type of element(s) would be ideal.


Here are a few use cases off the top of my head:
  • Pop-up windows that disappear when they lose focus or shift depending how focus changes.
  • Giving a heads-up to the server that a user has tabbed back in for the sake of an AFK check, or has similarly tabbed out.
  • Temporarily disabling elements that constantly tick on screen if the user isn't even looking at the game or interacting—no need to send the information if they aren't using it.
  • Switching between macros depending on the focused element.