fix key map combinations modifiers

This commit is contained in:
Frank DeMarco 2019-05-16 04:04:02 -04:00
parent 321d9df1be
commit 040a2b52ff
1 changed files with 13 additions and 4 deletions

View File

@ -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);
}