From 9bf9567283ac26d6f44b48fb85a31078ac73cf21 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 30 Dec 2002 09:00:28 +0000 Subject: [PATCH] put anticipated more-often-used modifier names in front --- src/bindings.cc | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/bindings.cc b/src/bindings.cc index 999b4ad8..ee479d5e 100644 --- a/src/bindings.cc +++ b/src/bindings.cc @@ -46,21 +46,21 @@ static bool modvalue(const std::string &mod, unsigned int *val) *val |= ShiftMask; } else if (mod == "A" || // alt/mod1 mod == "M" || - mod == "M1" || - mod == "Mod1") { + mod == "Mod1" || + mod == "M1") { *val |= Mod1Mask; - } else if (mod == "M2" || // mod2 - mod == "Mod2") { + } else if (mod == "Mod2" || // mod2 + mod == "M2") { *val |= Mod2Mask; - } else if (mod == "M3" || // mod3 - mod == "Mod3") { + } else if (mod == "Mod3" || // mod3 + mod == "M3") { *val |= Mod3Mask; } else if (mod == "W" || // windows/mod4 - mod == "M4" || - mod == "Mod4") { + mod == "Mod4" || + mod == "M4") { *val |= Mod4Mask; - } else if (mod == "M5" || // mod5 - mod == "Mod5") { + } else if (mod == "Mod5" || // mod5 + mod == "M5") { *val |= Mod5Mask; } else { // invalid return false; -- 2.45.2