ComboBox::lookAndFeelChanged() setWantsKeyboardFocus - bug?


#1

I’m trying to make my plugin not to react on keyboard pressings.
I’m easily setting setWantsKeyboardFocus(false) for every component.
This works very good.
But not on Combobox, and i think i found the reason.

In lookAndFeelChanged() function of ComboBox, if the label is non-editable, this will result in a call to setWantsKeyboardFocus(true), which makes no sense i think.


#2

Any idea how to make the ComboBox not to react on keyboard pressings ? Whenever the hierarchy changes ComboBox changes the focus behavior again because it calls lookandfeelchanged again.


#3

bump567890


#4

OK should be fixed on the develop. Let me know if this works for you.


#5

Looks very good! Thanks!