From 040a2b52ffd1033be349978dc2499a618f010471 Mon Sep 17 00:00:00 2001 From: Frank DeMarco Date: Thu, 16 May 2019 04:04:02 -0400 Subject: [PATCH] fix key map combinations modifiers --- src/Input.cpp | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/Input.cpp b/src/Input.cpp index 61945c8..de8a3fd 100644 --- a/src/Input.cpp +++ b/src/Input.cpp @@ -29,10 +29,19 @@ void Input::load_key_map() { for (std::string part : entry.value()) { - ctrl = part == "CTRL"; - shift = part == "SHIFT"; - alt = part == "ALT"; - if (not ctrl and not shift and not alt) + if (part == "CTRL") + { + ctrl = true; + } + else if (part == "SHIFT") + { + shift = true; + } + else if (part == "ALT") + { + alt = true; + } + else { key = get_key_code(part); }