From 930891f119321043d2a6172975d7b9c8568145f9 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 25 Mar 2003 22:13:09 +0000 Subject: [PATCH] translate "Control" and "Shift" for modifiers too --- plugins/keyboard/translate.c | 4 ++-- plugins/mouse/translate.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/keyboard/translate.c b/plugins/keyboard/translate.c index d18c604b..9de898e6 100644 --- a/plugins/keyboard/translate.c +++ b/plugins/keyboard/translate.c @@ -9,8 +9,8 @@ static guint translate_modifier(char *str) else if (!strcmp("Mod3", str)) return Mod3Mask; else if (!strcmp("Mod4", str) || !strcmp("W", str)) return Mod4Mask; else if (!strcmp("Mod5", str)) return Mod5Mask; - else if (!strcmp("C", str)) return ControlMask; - else if (!strcmp("S", str)) return ShiftMask; + else if (!strcmp("Control", str) || !strcmp("C", str)) return ControlMask; + else if (!strcmp("Shift", str) || !strcmp("S", str)) return ShiftMask; g_warning("Invalid modifier '%s' in binding.", str); return 0; } diff --git a/plugins/mouse/translate.c b/plugins/mouse/translate.c index 8d4b0d49..fb521e05 100644 --- a/plugins/mouse/translate.c +++ b/plugins/mouse/translate.c @@ -10,8 +10,8 @@ static guint translate_modifier(char *str) else if (!strcmp("Mod3", str)) return Mod3Mask; else if (!strcmp("Mod4", str) || !strcmp("W", str)) return Mod4Mask; else if (!strcmp("Mod5", str)) return Mod5Mask; - else if (!strcmp("C", str)) return ControlMask; - else if (!strcmp("S", str)) return ShiftMask; + else if (!strcmp("Control", str) || !strcmp("C", str)) return ControlMask; + else if (!strcmp("Shift", str) || !strcmp("S", str)) return ShiftMask; g_warning("Invalid modifier '%s' in binding.", str); return 0; } -- 2.45.2