From 8f55d378192de846793e733c180746d6e4dfe25b Mon Sep 17 00:00:00 2001 From: Martin Wagner Date: Sat, 24 Dec 2022 10:21:43 +0100 Subject: [PATCH] readded numpad shortcuts --- data/ShortcutsWindow.ui | 8 ++++---- src/mpdevil.py | 7 ++++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/data/ShortcutsWindow.ui b/data/ShortcutsWindow.ui index 70cc13a..eee0c4e 100644 --- a/data/ShortcutsWindow.ui +++ b/data/ShortcutsWindow.ui @@ -117,28 +117,28 @@ True Next title - <Alt>Down + <Alt>Down KP_Add True Previous title - <Alt>Up + <Alt>Up KP_Subtract True Seek forward - <Alt>Right + <Alt>Right KP_Multiply True Seek backward - <Alt>Left + <Alt>Left KP_Divide diff --git a/src/mpdevil.py b/src/mpdevil.py index 1b84a0a..a194644 100755 --- a/src/mpdevil.py +++ b/src/mpdevil.py @@ -3469,9 +3469,10 @@ class mpdevil(Gtk.Application): ("win.show-help-overlay", ["question"]),("win.toggle-lyrics", ["l"]), ("win.genre-filter", ["g"]),("win.back", ["Escape"]),("win.toggle-search", ["f"]), ("mpd.update", ["F5"]),("mpd.clear", ["Delete"]),("mpd.toggle-play", ["space"]),("mpd.stop", ["space"]), - ("mpd.next", ["Down"]),("mpd.prev", ["Up"]),("mpd.repeat", ["r"]),("mpd.random", ["n"]), - ("mpd.single", ["s"]),("mpd.consume", ["o"]),("mpd.single-oneshot", ["s"]), - ("mpd.seek-forward", ["Right"]),("mpd.seek-backward", ["Left"]) + ("mpd.next", ["Down", "KP_Add"]),("mpd.prev", ["Up", "KP_Subtract"]),("mpd.repeat", ["r"]), + ("mpd.random", ["n"]),("mpd.single", ["s"]),("mpd.consume", ["o"]), + ("mpd.single-oneshot", ["s"]), + ("mpd.seek-forward", ["Right", "KP_Multiply"]),("mpd.seek-backward", ["Left", "KP_Divide"]) ) for action, accels in action_accels: self.set_accels_for_action(action, accels)