From d7ac2f9f3a651c8c002e1f11ff98022e53817c90 Mon Sep 17 00:00:00 2001 From: evilC Date: Sun, 25 Mar 2018 15:58:11 +0100 Subject: [PATCH] Crash fix --- C#/AutoHotInterception/InterceptionWrapper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C#/AutoHotInterception/InterceptionWrapper.cs b/C#/AutoHotInterception/InterceptionWrapper.cs index b90d983..b0739d5 100644 --- a/C#/AutoHotInterception/InterceptionWrapper.cs +++ b/C#/AutoHotInterception/InterceptionWrapper.cs @@ -246,7 +246,7 @@ public class InterceptionWrapper : IDisposable while (Receive(_deviceContext, i, ref stroke, 1) > 0) { var block = false; - if (isMonitoredKeyboard) + if (isMonitoredKeyboard && _keyboardMappings.ContainsKey(i)) { // Process Subscription Mode var code = stroke.key.code;