Lemur icon indicating copy to clipboard operation
Lemur copied to clipboard

No focus event on disabled component

Open devent opened this issue 4 years ago • 1 comments

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.

devent avatar Mar 23 '20 14:03 devent

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.

pspeed42 avatar Jul 02 '20 01:07 pspeed42