[gnome-music/wip/jfelder/gtk4-v3: 14/169] window: Update MOD1_MASK to ALT_MASK




commit e64d482c0fe79dbe4e5887500ed82b481cf22238
Author: Marinus Schraal <mschraal gnome org>
Date:   Sun Apr 11 23:39:48 2021 +0200

    window: Update MOD1_MASK to ALT_MASK

 gnomemusic/window.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gnomemusic/window.py b/gnomemusic/window.py
index 23779b3c3..9ec551cb9 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -289,7 +289,7 @@ class Window(Adw.ApplicationWindow):
         modifiers = state & Gtk.accelerator_get_default_mod_mask()
         control_mask = Gdk.ModifierType.CONTROL_MASK
         shift_mask = Gdk.ModifierType.SHIFT_MASK
-        mod1_mask = Gdk.ModifierType.MOD1_MASK
+        alt_mask = Gdk.ModifierType.ALT_MASK
         shift_ctrl_mask = control_mask | shift_mask
 
         # Ctrl+<KEY>
@@ -329,7 +329,7 @@ class Window(Adw.ApplicationWindow):
             if keyval == Gdk.KEY_A:
                 self._deselect_all()
         # Alt+<KEY>
-        elif modifiers == mod1_mask:
+        elif modifiers == alt_mask:
             # Go back from child view on Alt + Left
             if keyval == Gdk.KEY_Left:
                 self._switch_back_from_childview()


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