help-overlay binding doesn't work / doesn't get displayed in menu
Following the docs at https://developer.gnome.org/gtk4/stable/GtkApplication one can use a file in gtk/show-help-overlay.ui to define a help window, which is automatically binded to Ctrl ?
. Adding
<item>
<attribute name='label' translatable='yes'>_Keyboard Shortcuts</attribute>
<attribute name='action'>win.show-help-overlay</attribute>
</item>
to a menu model, all the shortcuts for other items are displayed on the menu but not for Keyboard Shortcuts item (which works as intended otherwise).
EDIT: Note that the binding does appear in the shortcut window itself if listed as
<object class="GtkShortcutsShortcut">
<property name="title" translatable="yes" context="shortcut window">Show Shortcuts</property>
<property name="action-name">win.show-help-overlay</property>
</object>
Edited by Felix Häcker