GtkMenuButton: Shortcut keys can not work once the menu popup is opened
Steps to reproduce
- Place a menu button in the header bar. Use
menu-model
to set menu items. - Click the menu button to dispaly the popup, and then close it.
- Now, shortcuts are unresponsive
Version information
- OS: Ubuntu 22.04.1
- Gtk: 4.8.1 and 4.8.0
- Configure:
meson setup --prefix /opt/software/gtk4 --buildtype release -Dvulkan=enabled _build
Additional information
When I clicked the menu button, It seems that the foucs-widget
property of GtkApplicationWindow
was not changed correctly. foucs-widget
was always GtkModelButton
. To make shortcut keys work again, I need press the menu button and move the mouse. This operation can reset the foucs-widget
.
Edited by citysu