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())
|
for (std::string part : entry.value())
|
||||||
{
|
{
|
||||||
ctrl = part == "CTRL";
|
if (part == "CTRL")
|
||||||
shift = part == "SHIFT";
|
{
|
||||||
alt = part == "ALT";
|
ctrl = true;
|
||||||
if (not ctrl and not shift and not alt)
|
}
|
||||||
|
else if (part == "SHIFT")
|
||||||
|
{
|
||||||
|
shift = true;
|
||||||
|
}
|
||||||
|
else if (part == "ALT")
|
||||||
|
{
|
||||||
|
alt = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
key = get_key_code(part);
|
key = get_key_code(part);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue