Add explicit accelerators to shortcuts dialog

Replace action-name with explicit accelerator properties so the
keyboard shortcuts are displayed correctly in the dialog.
This commit is contained in:
vesp 2025-12-22 23:53:05 +01:00
parent 01943ecb1a
commit 9a89cce5b1

View File

@ -11,31 +11,31 @@
<child>
<object class="GtkShortcutsShortcut">
<property name="title" translatable="yes" context="shortcut window">New Tab</property>
<property name="action-name">win.new-tab</property>
<property name="accelerator">&lt;Control&gt;t</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
<property name="title" translatable="yes" context="shortcut window">Close Tab</property>
<property name="action-name">win.close-tab</property>
<property name="accelerator">&lt;Control&gt;w</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
<property name="title" translatable="yes" context="shortcut window">Save Request</property>
<property name="action-name">win.save-request</property>
<property name="accelerator">&lt;Control&gt;s</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
<property name="title" translatable="yes" context="shortcut window">Show Shortcuts</property>
<property name="action-name">win.show-help-overlay</property>
<property name="accelerator">&lt;Control&gt;question</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
<property name="title" translatable="yes" context="shortcut window">Quit</property>
<property name="action-name">app.quit</property>
<property name="accelerator">&lt;Control&gt;q</property>
</object>
</child>
</object>