readded numpad shortcuts

This commit is contained in:
Martin Wagner 2022-12-24 10:21:43 +01:00
parent ad3938f784
commit 8f55d37819
2 changed files with 8 additions and 7 deletions

View File

@ -117,28 +117,28 @@
<object class="GtkShortcutsShortcut"> <object class="GtkShortcutsShortcut">
<property name="visible">True</property> <property name="visible">True</property>
<property name="title" translatable="yes">Next title</property> <property name="title" translatable="yes">Next title</property>
<property name="accelerator">&lt;Alt&gt;Down</property> <property name="accelerator">&lt;Alt&gt;Down KP_Add</property>
</object> </object>
</child> </child>
<child> <child>
<object class="GtkShortcutsShortcut"> <object class="GtkShortcutsShortcut">
<property name="visible">True</property> <property name="visible">True</property>
<property name="title" translatable="yes">Previous title</property> <property name="title" translatable="yes">Previous title</property>
<property name="accelerator">&lt;Alt&gt;Up</property> <property name="accelerator">&lt;Alt&gt;Up KP_Subtract</property>
</object> </object>
</child> </child>
<child> <child>
<object class="GtkShortcutsShortcut"> <object class="GtkShortcutsShortcut">
<property name="visible">True</property> <property name="visible">True</property>
<property name="title" translatable="yes">Seek forward</property> <property name="title" translatable="yes">Seek forward</property>
<property name="accelerator">&lt;Alt&gt;Right</property> <property name="accelerator">&lt;Alt&gt;Right KP_Multiply</property>
</object> </object>
</child> </child>
<child> <child>
<object class="GtkShortcutsShortcut"> <object class="GtkShortcutsShortcut">
<property name="visible">True</property> <property name="visible">True</property>
<property name="title" translatable="yes">Seek backward</property> <property name="title" translatable="yes">Seek backward</property>
<property name="accelerator">&lt;Alt&gt;Left</property> <property name="accelerator">&lt;Alt&gt;Left KP_Divide</property>
</object> </object>
</child> </child>
<child> <child>

View File

@ -3469,9 +3469,10 @@ class mpdevil(Gtk.Application):
("win.show-help-overlay", ["<Control>question"]),("win.toggle-lyrics", ["<Control>l"]), ("win.show-help-overlay", ["<Control>question"]),("win.toggle-lyrics", ["<Control>l"]),
("win.genre-filter", ["<Control>g"]),("win.back", ["Escape"]),("win.toggle-search", ["<Control>f"]), ("win.genre-filter", ["<Control>g"]),("win.back", ["Escape"]),("win.toggle-search", ["<Control>f"]),
("mpd.update", ["F5"]),("mpd.clear", ["<Shift>Delete"]),("mpd.toggle-play", ["space"]),("mpd.stop", ["<Shift>space"]), ("mpd.update", ["F5"]),("mpd.clear", ["<Shift>Delete"]),("mpd.toggle-play", ["space"]),("mpd.stop", ["<Shift>space"]),
("mpd.next", ["<Alt>Down"]),("mpd.prev", ["<Alt>Up"]),("mpd.repeat", ["<Control>r"]),("mpd.random", ["<Control>n"]), ("mpd.next", ["<Alt>Down", "KP_Add"]),("mpd.prev", ["<Alt>Up", "KP_Subtract"]),("mpd.repeat", ["<Control>r"]),
("mpd.single", ["<Control>s"]),("mpd.consume", ["<Control>o"]),("mpd.single-oneshot", ["<Shift><Control>s"]), ("mpd.random", ["<Control>n"]),("mpd.single", ["<Control>s"]),("mpd.consume", ["<Control>o"]),
("mpd.seek-forward", ["<Alt>Right"]),("mpd.seek-backward", ["<Alt>Left"]) ("mpd.single-oneshot", ["<Shift><Control>s"]),
("mpd.seek-forward", ["<Alt>Right", "KP_Multiply"]),("mpd.seek-backward", ["<Alt>Left", "KP_Divide"])
) )
for action, accels in action_accels: for action, accels in action_accels:
self.set_accels_for_action(action, accels) self.set_accels_for_action(action, accels)