summaryrefslogtreecommitdiffstats
path: root/windows/neo-vars/src/Source/recycle.ahk
diff options
context:
space:
mode:
Diffstat (limited to 'windows/neo-vars/src/Source/recycle.ahk')
-rw-r--r--windows/neo-vars/src/Source/recycle.ahk7
1 files changed, 5 insertions, 2 deletions
diff --git a/windows/neo-vars/src/Source/recycle.ahk b/windows/neo-vars/src/Source/recycle.ahk
index 14a0655..15034b6 100644
--- a/windows/neo-vars/src/Source/recycle.ahk
+++ b/windows/neo-vars/src/Source/recycle.ahk
@@ -157,6 +157,7 @@ Sonstige Variablen
*/
guiErstellt := 0
alwaysOnTop := 1
+wasNonShiftKeyPressed := 0
isShiftRPressed := 0
isShiftLPressed := 0
isShiftPressed := 0
@@ -528,10 +529,11 @@ return
; das schaltet, oh Wunder, die LED nicht wieder aus.
~*VKA1SC136::
- if (isShiftLPressed and !isShiftRPressed)
+ if (isShiftLPressed and !isShiftRPressed and !wasNonShiftKeyPressed)
ToggleMod2Lock()
isShiftRPressed := 1
isShiftPressed := 1
+ wasNonShiftKeyPressed := 0
EbeneAktualisieren()
return
@@ -542,10 +544,11 @@ return
return
~*VKA0SC02A::
- if (isShiftRPressed and !isShiftLPressed)
+ if (isShiftRPressed and !isShiftLPressed and !wasNonShiftKeyPressed)
ToggleMod2Lock()
isShiftLPressed := 1
isShiftPressed := 1
+ wasNonShiftKeyPressed := 0
EbeneAktualisieren()
return