From: Dana Jansens Date: Tue, 25 Mar 2003 22:13:09 +0000 (+0000) Subject: translate "Control" and "Shift" for modifiers too X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=930891f119321043d2a6172975d7b9c8568145f9;p=chaz%2Fopenbox translate "Control" and "Shift" for modifiers too --- 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; }