Added keystrokes: control and up/down to turn volume

This commit is contained in:
Manuel Cortez 2018-01-26 12:08:21 -06:00
parent 00a1560b60
commit f94dca48ff

View File

@ -67,9 +67,13 @@ class Controller(object):
def on_keypress(self, ev):
if ev.GetKeyCode() == wx.WXK_RETURN:
self.on_play()
return self.on_play()
elif ev.GetKeyCode() == wx.WXK_SPACE:
self.on_play_pause()
return self.on_play_pause()
elif ev.GetKeyCode() == wx.WXK_UP and ev.ControlDown():
return self.on_volume_up()
elif ev.GetKeyCode() == wx.WXK_DOWN and ev.ControlDown():
return self.on_volume_down()
ev.Skip()
def on_play_pause(self, *args, **kwargs):