picotui icon indicating copy to clipboard operation
picotui copied to clipboard

Dialog: Emit focusin and focusout signals

Open tbabej opened this issue 3 years ago • 4 comments

Emit signals on change of focus to enable hooking handlers for focusin and focusout events on particular widgets.

tbabej avatar Apr 10 '21 04:04 tbabej

Thanks, but why?

pfalcon avatar Apr 10 '21 05:04 pfalcon

In my particular case, I am designing a dialog where "hovering" over a particular checkbox should display help text explaining that particular choice in more detail - which is implemented through a label text.

tbabej avatar Apr 10 '21 05:04 tbabej

Thanks for explanation, that indeed may be useful in some cases. But there's no real mouse "hovering" in TUI (usually), and there's other known patterns to achieve that functionality (e.g. pressing F1 in a field to get a help dialog). So, I'm marking this as a "contrib", so the people interested in this functionality could add/pick it up.

pfalcon avatar Apr 24 '21 14:04 pfalcon

Btw, I'm planning to make some backwards-incompatible changes: https://github.com/pfalcon/picotui/issues/59. Feedback whether that should be 1.3/1.4 or 2.0 is welcome.

pfalcon avatar Apr 24 '21 15:04 pfalcon