GtkHeaderBar: Application menu button is not keyboard accessible (cannot focus)
@yurivkhan
Submitted by Yuri Khan Link to original bug (#784139)
Description
Created attachment 354339 Screenshot illustrating the problem
I have heard of desktop environments that display the application menu in a dedicated place (GNOME Shell, OS X). Presumably, in that case the desktop environment provides a key that the user can press to open the application menu.
I am not on such a system. That means every GTK application has to display its menu in its own window.
There are basically two ways to do that. By default, GtkApplicationWindow displays a menu bar with the application menu as its first menu. In this case, F10 opens the menu.
Another way is to create a GtkHeaderBar to the window, pass it into gtk_application_window_set_titlebar() and call gtk_header_bar_set_show_close_button(true). In this case, the header bar shows an unfocusable button that, when clicked, displays the application menu.
In this latter scenario, how does the user access the application menu without having to use a pointing device? Is every application supposed to implement that? As a developer, how would I go about that? As a user, what do I say in the bug report when an application neglects this?
What I’m actually trying to say is that maybe there should be a well-known shortcut key that activates the application menu button. Since many applications seem to be already using F10 to activate the gear menu, it should be a different key.
Attachment 354339, "Screenshot illustrating the problem":
Version: 3.22.x