isXander / YetAnotherConfigLib

YetAnotherConfigLib (yacl) is just that. A builder-based configuration library for Minecraft.
GNU Lesser General Public License v3.0
98 stars 40 forks source link

Text fields do not properly unfocus when using keyboard navigation #67

Closed Crendgrim closed 1 year ago

Crendgrim commented 1 year ago

This behaviour applies to String as well as numeric controllers. Tested using 3.0.0-beta.2.

The first time a text field is selected, it gains focus like expected. However, moving out of it with arrow up/down does not make it lose focus. After re-focusing it once, it then does lose its focus on subsequent moves using the keyboard.

I investigated a bit, and neither setFocus nor unfocus appear to be called on the widget on the first move. On subsequent ones, setFocus(true) is called twice for focusing, and setFocus(false) twice on unfocusing.

Crendgrim commented 1 year ago

Not a problem anymore in 3.0.1