From 8d70b760598d0510f757c8b0653230f4cbec89cc Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Sat, 1 Oct 2016 18:05:11 +1000 Subject: [PATCH] Fix restoration of key bindings assigned to Windows+key, bug #7037 Windows key generates Mod4+Super (at least with the version of Gdk we use on linux) so for bindings using the Windows key to work, GDK_SUPER_MASK has to be added to modifier mask. --- libs/gtkmm2ext/keyboard.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/gtkmm2ext/keyboard.cc b/libs/gtkmm2ext/keyboard.cc index 1b0aec6cd6..6417596dad 100644 --- a/libs/gtkmm2ext/keyboard.cc +++ b/libs/gtkmm2ext/keyboard.cc @@ -86,7 +86,7 @@ guint Keyboard::snap_delta_mod = Keyboard::Level4Modifier; guint Keyboard::PrimaryModifier = GDK_CONTROL_MASK; // Control guint Keyboard::SecondaryModifier = GDK_MOD1_MASK; // Alt/Option guint Keyboard::TertiaryModifier = GDK_SHIFT_MASK; // Shift -guint Keyboard::Level4Modifier = GDK_MOD4_MASK; // Mod4/Windows +guint Keyboard::Level4Modifier = GDK_MOD4_MASK|GDK_SUPER_MASK; // Mod4/Windows guint Keyboard::CopyModifier = GDK_CONTROL_MASK; guint Keyboard::RangeSelectModifier = GDK_SHIFT_MASK; guint Keyboard::button2_modifiers = 0; /* not used */