clapper-app: Add new window keyboard shortcut

This commit is contained in:
Rafał Dzięgiel
2024-05-13 19:16:25 +02:00
parent cc5c2b2403
commit 6fb25dd22b
2 changed files with 9 additions and 2 deletions

View File

@@ -671,6 +671,7 @@ clapper_app_application_constructed (GObject *object)
static const ClapperAppShortcut app_shortcuts[] = {
{ "app.add-files", { "<Control>o", NULL, NULL }},
{ "app.add-uri", { "<Control>u", NULL, NULL }},
{ "app.new-window", { "<Control>n", NULL, NULL }},
{ "app.info", { "<Control>i", NULL, NULL }},
{ "app.preferences", { "<Control>comma", NULL, NULL }},
{ "app.about", { "F1", NULL, NULL }},

View File

@@ -10,8 +10,8 @@
<property name="title" translatable="yes">General</property>
<child>
<object class="GtkShortcutsShortcut">
<property name="title" translatable="yes">Show shortcuts</property>
<property name="accelerator">&lt;Ctrl&gt;question</property>
<property name="title" translatable="yes">New window</property>
<property name="accelerator">&lt;Ctrl&gt;n</property>
</object>
</child>
<child>
@@ -20,6 +20,12 @@
<property name="accelerator">&lt;Ctrl&gt;comma</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
<property name="title" translatable="yes">Show shortcuts</property>
<property name="accelerator">&lt;Ctrl&gt;question</property>
</object>
</child>
<child>
<object class="GtkShortcutsShortcut">
<property name="title" translatable="yes">Toggle fullscreen</property>