Removed unnecessary decisions

Condensed a tree of decisions to just cut the unnecessary decisions out.
This commit is contained in:
yankejustin 2015-05-04 12:30:55 -04:00
parent 4b3216267e
commit 68a1cda9b7
1 changed files with 1 additions and 16 deletions

View File

@ -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 (ShiftKey && CapsLock) //If the state of Shiftkey is down and Capslock is toggled on
{
_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));
}
_keyBuffer.Append(FromKeys(i, ShiftKey, CapsLock));
return;
}