Crash fix

Mouse
evilC 7 years ago
parent 45353a4049
commit d7ac2f9f3a

@ -246,7 +246,7 @@ public class InterceptionWrapper : IDisposable
while (Receive(_deviceContext, i, ref stroke, 1) > 0) while (Receive(_deviceContext, i, ref stroke, 1) > 0)
{ {
var block = false; var block = false;
if (isMonitoredKeyboard) if (isMonitoredKeyboard && _keyboardMappings.ContainsKey(i))
{ {
// Process Subscription Mode // Process Subscription Mode
var code = stroke.key.code; var code = stroke.key.code;

Loading…
Cancel
Save