jMonkeyEngine-Contributions / Lemur

Lemur is a jMonkeyEngine-based UI toolkit.
http://jmonkeyengine-contributions.github.io/Lemur/
BSD 3-Clause "New" or "Revised" License
116 stars 32 forks source link

No focus event on disabled component #92

Open devent opened 4 years ago

devent commented 4 years ago

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 commented 4 years ago

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.