summaryrefslogtreecommitdiffstats
path: root/windows/autohotkey/Source/Methods-Layers.ahk
diff options
context:
space:
mode:
authormartin_r <martin_r@b9310e46-f624-0410-8ea1-cfbb3a30dc96>2008-08-18 23:59:03 +0000
committermartin_r <martin_r@b9310e46-f624-0410-8ea1-cfbb3a30dc96>2008-08-18 23:59:03 +0000
commitbfa3d69173bba606333e10cf66288b8b258b02ad (patch)
tree56fbac0c573b7c54d37fa9fe34c47152b8f80c10 /windows/autohotkey/Source/Methods-Layers.ahk
parente9a5890cbe15c9a49012138b76f5b47d40fb7780 (diff)
CapsLock+Shift-Fehler ausgebessert
git-svn-id: https://svn.neo-layout.org@778 b9310e46-f624-0410-8ea1-cfbb3a30dc96
Diffstat (limited to 'windows/autohotkey/Source/Methods-Layers.ahk')
-rw-r--r--windows/autohotkey/Source/Methods-Layers.ahk11
1 files changed, 10 insertions, 1 deletions
diff --git a/windows/autohotkey/Source/Methods-Layers.ahk b/windows/autohotkey/Source/Methods-Layers.ahk
index b13edfc..2d4e6e2 100644
--- a/windows/autohotkey/Source/Methods-Layers.ahk
+++ b/windows/autohotkey/Source/Methods-Layers.ahk
@@ -110,7 +110,16 @@ EbeneAktualisieren()
IsShiftPressed()
{
global
- return ((GetKeyState("Shift","P")) = !(isMod2Locked)) ;xor
+ if GetKeyState("Shift","P")
+ if isMod2Locked
+ return 0
+ else
+ return 1
+ else
+ if isMod2Locked
+ return 1
+ else
+ return 0
}
IsMod3Pressed()