GtkMenuButton within a GtkHeaderbar cannot be navigated to/from with the keyboard with Tab / Shift+Tab since GTK 4.11.x
In GNOME Calendar's development version (in the event editor dialog), we have found an accessibility regression where a MenuButton flanked by two regular buttons, in a HeaderBar, like this...
i.e. this widget tree:
...manifests the following symptoms/problems:
- When the MenuButton widget is focused (as shown highlighted in blue in the screenshot above), you can't
Tab
to the next widget (the Done button, or whatever else in the window), it stays stuck there.
You can, however,Shift+Tab
to the previous widget (the "Cancel" button on the left) - When the following widget (the "Done" button on the right) is focused, you can't
Shift+Tab
to focus the MenuButton on its left, the focus stays stuck on the "Done" button
It apparently only happens with GTK 4.11.x (in my case, this currently means GTK 4.11.5):
- GNOME Calendar 44.1 from Fedora 38 (running GTK 4.10.4) does not exhibit this issue.
- Building GNOME Calendar git/45.x against the GNOME 44 runtime (thus GTK 4.10.x) also does not exhibit the issue.
Just for completeness' sake, GNOME Calendar 44.1 had this widget tree, but in any case this shouldn't affect things, presumably: