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 cyclic focus change using Tab or Shift-Tab #91

Open devent opened 4 years ago

devent commented 4 years ago

I have multiple text fields. Tab and shift-tab changes the focus to the next and previous, respectively, as expected. But if the focus is on the last input field and I pres Tab then the focus is not moved to the first input field. The same with Shift-Tab and first to the last.

Input A, B, C. Focus is on C. Pressing Tab does nothing. Expected behavior: Focus is on A.

Input A, B, C. Focus is on A. Pressing Shift-Tab does nothing. Expected behavior: Focus is on C.

Lemur: 1.13.0

pspeed42 commented 4 years ago

When you say "tab does nothing", does that mean focus is still on C or has focus changed to something that is not A, B, or C.

By default, focus is cyclic but it may be going to another GUI element not in the three. If that's happening and it's undesirable then it is possible to set a custom focus root that defines the cycle as you want. But it should be moving to "something" now... it would be interesting to know what.