Fixed writing to debug log on every tick rather than on every successful operation.

master
Sean McArdle 2017-05-11 11:23:43 -07:00
parent 83d5d65fa3
commit e7534ee0a5
1 changed files with 3 additions and 2 deletions

View File

@ -73,9 +73,10 @@ namespace KeyWatch__
}
if (_manageScroll) {
if ((_scrolllockSelection == "Enabled" && !ScrollLock) ||
(_scrolllockSelection == "Disabled" && ScrollLock))
(_scrolllockSelection == "Disabled" && ScrollLock)) {
_sim.Keyboard.KeyPress(WindowsInput.Native.VirtualKeyCode.SCROLL);
Trace.WriteLine(String.Format("{0} - disable Scrolllock", DateTime.Now));
Trace.WriteLine(String.Format("{0} - disable Scrolllock", DateTime.Now));
}
}
_doingWork = false;
}