diff options
Diffstat (limited to 'windows')
-rw-r--r-- | windows/neo-vars/src/Source/recycle.ahk | 7 | ||||
-rw-r--r-- | windows/neo-vars/src/Source/varsfunctions.ahk | 1 |
2 files changed, 6 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
diff --git a/windows/neo-vars/src/Source/varsfunctions.ahk b/windows/neo-vars/src/Source/varsfunctions.ahk index 58d1f38..079a333 100644 --- a/windows/neo-vars/src/Source/varsfunctions.ahk +++ b/windows/neo-vars/src/Source/varsfunctions.ahk @@ -30,6 +30,7 @@ AllStar(This_HotKey) { CharStarDown(PhysKey, ActKey, char) {
global
+ wasNonShiftKeyPressed := 1
if (PP%PhysKey% != "")
CompNew := PP%PhysKey% ; Von Tastaturwiederholung
else
|