fix key map combinations modifiers
This commit is contained in:
parent
321d9df1be
commit
040a2b52ff
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue