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

No focus event on disabled component #92

Open
devent opened this issue Mar 23, 2020 · 1 comment
Open

No focus event on disabled component #92

devent opened this issue Mar 23, 2020 · 1 comment

Comments

@devent
Copy link

devent commented Mar 23, 2020

I have a disabled button. Using tab or clicking on the disabled button does not invoke the FocusChangeListener focusLost or focusGained event.

button.setEnabled(false)
// no more focusLost or focusGained event

Expected behavior: FocusChangeListener still receives the focusLost or focusGained event.

@pspeed42
Copy link
Contributor

pspeed42 commented Jul 2, 2020

Thinking about this... I think a lot of UI toolkits will consider a disabled GUI element in focusable. Can you describe your use-case a little bit?

Thanks.

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

No branches or pull requests

2 participants