[gnome-music] BUG 733473 - adds alt-left shortcut to leave single album view.



commit 685e79b183d93fd06f46ee48f784b8096cf74e4f
Author: Tina Hinojosa <agustina hinojosa gmail com>
Date:   Sun Oct 12 12:55:07 2014 -0700

    BUG 733473 - adds alt-left shortcut to leave single album view.

 gnomemusic/window.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gnomemusic/window.py b/gnomemusic/window.py
index 95e888e..fcfeea7 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -310,6 +310,12 @@ class Window(Gtk.ApplicationWindow):
             if (event.keyval == Gdk.KEY_f and
                     event_and_modifiers == Gdk.ModifierType.CONTROL_MASK):
                 self.toolbar.searchbar.toggle_bar()
+            # Go back from Album view on Alt + Left
+            if (event.keyval == Gdk.KEY_Left and
+                    event_and_modifiers == Gdk.ModifierType.MOD1_MASK):
+                if (self.toolbar._state != ToolbarState.MAIN):
+                    self.curr_view.set_visible_child(self.curr_view._grid)
+                    self.toolbar.set_state(ToolbarState.MAIN)
         else:
             # Close search bar after Esc is pressed
             if event.keyval == Gdk.KEY_Escape:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]