Made a bunch of popups non-modal so that the rest of the window works when they are open

This commit is contained in:
Sumner Evans
2019-12-28 18:16:22 -07:00
parent 2804bba34d
commit 8a1fa8d186
3 changed files with 120 additions and 36 deletions

View File

@@ -681,6 +681,15 @@ class SublimeMusicApp(Gtk.Application):
self.update_window()
def on_window_key_press(self, window, event):
if (event.keyval == 102
and event.state == Gdk.ModifierType.CONTROL_MASK):
# Ctrl + F
window.search_entry.grab_focus()
return
if window.search_entry.has_focus():
return False
keymap = {
32: self.on_play_pause,
65360: self.on_prev_track,