-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keyboard focus works with Shift+Tab but not with just the Tab key #207
Labels
bug
Something isn't working
Comments
It turns out this bug is being caused by this context menu. Disabling it by using egui_dock/src/widgets/dock_area/show/leaf.rs Lines 312 to 345 in fae7fbc
I'll see if I can figure out how to fix the bug without disabling the context menu. |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Egui allows users to focus widgets using the keyboard, i.e. selecting focusable widgets like buttons, using the Tab key to navigate in forward order or Shift+Tab to navigate in reverse order. However, widgets in an egui_dock tab will only be navigable in this way if the user uses Shift+Tab. Pressing the Tab key does not work.
To Reproduce
Replace the
ui.label(format!("Content of {tab}"));
here in the "simple" example withlet _ = ui.button(format!("Content of {tab}"));
and then run it.egui_dock/examples/simple.rs
Line 26 in c360442
When holding down Shift+Tab, the focus cycles between the buttons inside the tabs.
When holding down the Tab key alone, nothing happens.
Expected behavior
When holding down the Tab key, the focus should cycle between the buttons in the reverse of the order that Shift+Tab cycles the buttons in.
Screenshots
This is what's supposed to happen when holding Tab, but in reverse order:
The text was updated successfully, but these errors were encountered: