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




commit 4315b19991c8062ffa2afb5bc90ed45ff5812a7e
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 82d59613e..7da9bec2e 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]