From 834b1d2dd7b5f244b46c6b1aa6c5a139d6527edc Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Fri, 26 Jan 2018 12:15:47 -0600 Subject: [PATCH] Added keystrokes: alt left/right for playing the previous/next track --- src/controller/mainController.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/controller/mainController.py b/src/controller/mainController.py index 985759f..1d63afb 100644 --- a/src/controller/mainController.py +++ b/src/controller/mainController.py @@ -74,6 +74,10 @@ class Controller(object): return self.on_volume_up() elif ev.GetKeyCode() == wx.WXK_DOWN and ev.ControlDown(): return self.on_volume_down() + elif ev.GetKeyCode() == wx.WXK_LEFT and ev.AltDown(): + return self.on_previous() + elif ev.GetKeyCode() == wx.WXK_RIGHT and ev.AltDown(): + return self.on_next() ev.Skip() def on_play_pause(self, *args, **kwargs):