Replies: 1 comment
-
Thanks for the report - I can't see anything obviously wrong with the code you've provided, so it definitely sounds like a bug. My guess is that it will be related to the dynamic creation of widgets, but I'd need to go digging to elaborate beyond that. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I just started experimenting with toga this weekend and am seeing an odd behavior on MacOS. I'm not sure if this is a bug or if I'm doing something wrong.
The snippet below reproduces it. Essentially, I have a two column layout where an action in the left column (button press in this example) displays a set of input widgets in the right column.
Launch app:
The right box shows a set of labels and text inputs
The first text input widget has focus
Pressing tab key selects the next text input widget
Press a 'Toggle Forms' button
The right box shows a new set of labels/inputs
None of the new inputs has focus
After focusing one of the inputs, tab key does not navigate to next widget
I would expect to be able to tab between the widgets once one was in focus. It does work as expected on Windows 10.
I'm using toga 0.3.0.dev29 on both platforms. MacOS version is 11.6.1
Worth mentioning that if I reuse the same widget instances instead of recreating them each time (i.e
self.fields1 = get_fields(1)
self.fields2 = get_fields(2)
and toggle between these in the callbacks), then the same problem occurs when toggling to the second set of widgets but the focus and tab navigation work when toggling back to the widgets initially loaded.I hope that makes sense.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions