From 21f5e93777b12661d98031218b0105db50c1035e Mon Sep 17 00:00:00 2001 From: PhatDave Date: Wed, 27 Oct 2021 15:34:34 +0200 Subject: [PATCH] Fixed bug regarding modifier keys --- Echo.ahk | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Echo.ahk b/Echo.ahk index 2f1a7a5..e077848 100644 --- a/Echo.ahk +++ b/Echo.ahk @@ -34,8 +34,10 @@ OnKeyDown(InputHook, VK, SC) { OnKeyUp(InputHook, VK, SC) { key := GetKeyName(Format("vk{:x}sc{:x}", VK, SC)) - for k, v in enabledWindows[1] { - ControlSend,, {%key% up}, ahk_pid %v% + if (whitelistKeys.HasKey(key)) { + for k, v in enabledWindows[1] { + ControlSend,, {%key% up}, ahk_pid %v% + } } } @@ -132,6 +134,8 @@ KeyLogToString() { output := "" for k, v in keyLog { output .= k + output .= " " + output .= v output .= "|" } StringTrimRight, output, output, 1