From d1550fef10e5eb0d8860278ad659a07cfdd2d302 Mon Sep 17 00:00:00 2001 From: mösi Date: Fri, 7 Nov 2008 18:55:57 +0000 Subject: ticket#7: fixed, auch für Mod3 und Mod4. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.neo-layout.org@1137 b9310e46-f624-0410-8ea1-cfbb3a30dc96 --- windows/neo-vars/src/Source/recycle.ahk | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'windows/neo-vars/src/Source') 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 -- cgit v1.2.3