[gnome-music/wip/mschraal/gtk4-v2: 29/56] window: Update MOD1_MASK to ALT_MASK




commit 1864c9f2a2123fec473ceb00d2fdb53900105682
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 99a06ff06..43d92de73 100644
--- a/gnomemusic/window.py
+++ b/gnomemusic/window.py
@@ -293,7 +293,7 @@ class Window(Gtk.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>
@@ -339,7 +339,7 @@ class Window(Gtk.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]