diff options
author | mösi <mösi@b9310e46-f624-0410-8ea1-cfbb3a30dc96> | 2008-11-07 18:55:57 +0000 |
---|---|---|
committer | mösi <mösi@b9310e46-f624-0410-8ea1-cfbb3a30dc96> | 2008-11-07 18:55:57 +0000 |
commit | d1550fef10e5eb0d8860278ad659a07cfdd2d302 (patch) | |
tree | e64201f226e6d9d19e6f2218ea9415dc58719e92 | |
parent | dc9736611ec29494233b93bbf6aba64f9888c49c (diff) | |
download | neo-layout-d1550fef10e5eb0d8860278ad659a07cfdd2d302.tar.gz neo-layout-d1550fef10e5eb0d8860278ad659a07cfdd2d302.tar.bz2 neo-layout-d1550fef10e5eb0d8860278ad659a07cfdd2d302.zip |
ticket#7: fixed, auch für Mod3 und Mod4.
git-svn-id: https://svn.neo-layout.org@1137 b9310e46-f624-0410-8ea1-cfbb3a30dc96
-rw-r--r-- | windows/neo-vars/src/Source/recycle.ahk | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/windows/neo-vars/src/Source/recycle.ahk b/windows/neo-vars/src/Source/recycle.ahk index 15034b6..eef80b9 100644 --- a/windows/neo-vars/src/Source/recycle.ahk +++ b/windows/neo-vars/src/Source/recycle.ahk @@ -574,10 +574,11 @@ ToggleMod2Lock() { *VKBFSC02B::
- if (isMod3LPressed and !isMod3RPressed)
+ if (isMod3LPressed and !isMod3RPressed and !wasNonShiftKeyPressed)
CharStarDown("MOD3", "MOD3", "SComp")
isMod3RPressed := 1
isMod3Pressed := 1
+ wasNonShiftKeyPressed := 0
EbeneAktualisieren()
return
@@ -590,10 +591,11 @@ return return
*VK14SC03A::
- if (isMod3RPressed and !isMod3LPressed)
+ if (isMod3RPressed and !isMod3LPressed and !wasNonShiftKeyPressed)
CharStarDown("MOD3", "MOD3", "SComp")
isMod3LPressed := 1
isMod3Pressed := 1
+ wasNonShiftKeyPressed := 0
EbeneAktualisieren()
return
@@ -615,8 +617,10 @@ return wasMod4RPressed := isMod4RPressed
isMod4RPressed := 1
isMod4Pressed := 1
+ waswasNonShiftKeyPressed := wasNonShiftKeyPressed
+ wasNonShiftKeyPressed := 0
EbeneAktualisieren()
- if (isMod4LPressed and !wasMod4RPressed)
+ if (isMod4LPressed and !wasMod4RPressed and !waswasNonShiftKeyPressed)
ToggleMod4Lock()
return
@@ -630,8 +634,10 @@ return wasMod4LPressed := isMod4LPressed
isMod4LPressed := 1
isMod4Pressed := 1
+ waswasNonShiftKeyPressed := wasNonShiftKeyPressed
+ wasNonShiftKeyPressed := 0
EbeneAktualisieren()
- if (isMod4RPressed and !wasMod4LPressed)
+ if (isMod4RPressed and !wasMod4LPressed and !waswasNonShiftKeyPressed)
ToggleMod4Lock()
return
|