fixed space key glitch

This commit is contained in:
Martin Wagner 2020-02-05 21:35:19 +01:00
parent 8f1678579f
commit 2e5ce9bf2b

View File

@ -1843,7 +1843,9 @@ class MainWindow(Gtk.ApplicationWindow):
self.lyrics_win.destroy()
def on_key_press_event(self, widget, event):
if event.keyval == 32 or event.keyval == 269025044: #space / AudioPlay
if event.keyval == 32: #space
self.control.play_button.grab_focus()
if event.keyval == 269025044: #AudioPlay
self.control.play_button.emit("clicked")
elif event.keyval == 269025047: #AudioNext
self.control.next_button.emit("clicked")