summaryrefslogtreecommitdiff
path: root/windows/neo-vars/src/Source
diff options
context:
space:
mode:
authormösi <mösi@b9310e46-f624-0410-8ea1-cfbb3a30dc96>2008-11-07 10:47:34 +0000
committermösi <mösi@b9310e46-f624-0410-8ea1-cfbb3a30dc96>2008-11-07 10:47:34 +0000
commite56572d0ba2eccd2e99d1d0c8058a24c322780d3 (patch)
tree7edb91e07e179bfca5b7359c14bb36da87019e3d /windows/neo-vars/src/Source
parent0a072ff6723e9203134e90910e07ea6cb3478242 (diff)
downloadneo-layout-e56572d0ba2eccd2e99d1d0c8058a24c322780d3.tar.gz
neo-layout-e56572d0ba2eccd2e99d1d0c8058a24c322780d3.tar.bz2
neo-layout-e56572d0ba2eccd2e99d1d0c8058a24c322780d3.zip
ticket#7: fixed. Jeder Nicht-Modifier-Tastendruck wird registriert und verhindert darauffolgendes Aktivieren des CapsLock mit dem überlappenden Drücken des anderen Shift.
git-svn-id: https://svn.neo-layout.org@1133 b9310e46-f624-0410-8ea1-cfbb3a30dc96
Diffstat (limited to 'windows/neo-vars/src/Source')
-rw-r--r--windows/neo-vars/src/Source/recycle.ahk7
-rw-r--r--windows/neo-vars/src/Source/varsfunctions.ahk1
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