Menu shortcuts have to be held down when opening submenus, on Wayland
I'm running gnome-terminal
on Fedora 36 in a Wayland session with updated packages, specifically gnome-terminal-3.44.1-1.fc36.x86_64
.
The way menu shortcuts are handled when they open submenus is different in Wayland compared to Xorg, such that releasing the shortcut before the menu is fully shown will stop it from opening.
Under Xorg, I can simply type Alt+f to open the File menu, then use the arrow keys to navigate through the menu to the entry I want.
But in a Wayland session, the Alt key has to be held down until the menu fully opens (including the currently-selected submenu, if any), or it will stop opening. And since the File menu opens on the New Tab entry's list of Profiles, there is a brief delay in populating the submenu that makes it necessary to deliberately hold the keyboard shortcut for longer than normal.
A screencast may help illustrate the problem. There are four keyboard inputs (keypresses or shortcut combinations) shown in the GIF below:
- I first type Alt+f and then release both keys immediately, as I would normally do.
- I perform the same action a second time.
- I type Alt+f, but keep the Alt key held down, only releasing it when the list of profiles appears.
- I hit Esc to manually dismiss the menu.
The first two times, because I released all keys before the menu fully opened, it stops opening and doesn't come up. Only by holding down the Alt key can I get the menu to open to the point where I can navigate without having to hold down any keys. (Also, keeping the f key pressed after typing Alt+f doesn't work — it has to be the Alt key.)
I switched to an Xorg session and confirmed that the same behavior isn't present there — when running under Xorg, I can quickly type Alt+f and immediately release, but the menu still appears.