[gnome-settings-daemon] common: Allow to grab 'Print' without modifiers



commit 5c4d989a6a6d20713bf6ac50593bf7cc8357b235
Author: Florian MÃllner <fmuellner gnome org>
Date:   Mon Nov 7 18:38:19 2011 +0100

    common: Allow to grab 'Print' without modifiers
    
    https://bugzilla.gnome.org/show_bug.cgi?id=663623

 plugins/common/gsd-keygrab.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plugins/common/gsd-keygrab.c b/plugins/common/gsd-keygrab.c
index 4740c44..bb2f20c 100644
--- a/plugins/common/gsd-keygrab.c
+++ b/plugins/common/gsd-keygrab.c
@@ -163,7 +163,8 @@ grab_key_unsafe (Key                 *key,
         if ((modifiers & gsd_used_mods) == 0 &&
             !IN_RANGE(key->keysym, XF86KEYS_RANGE_MIN, XF86KEYS_RANGE_MAX) &&
             !IN_RANGE(key->keysym, FKEYS_RANGE_MIN, FKEYS_RANGE_MAX) &&
-             key->keysym != GDK_KEY_Pause) {
+             key->keysym != GDK_KEY_Pause &&
+             key->keysym != GDK_KEY_Print) {
                 GString *keycodes;
 
                 keycodes = g_string_new ("");



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