Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dialog: Emit focusin and focusout signals #57

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

tbabej
Copy link

@tbabej tbabej commented Apr 10, 2021

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

@pfalcon
Copy link
Owner

pfalcon commented Apr 10, 2021

Thanks, but why?

@tbabej
Copy link
Author

tbabej commented Apr 10, 2021

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.

@pfalcon
Copy link
Owner

pfalcon commented Apr 24, 2021

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
Copy link
Owner

pfalcon commented Apr 24, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants