summaryrefslogtreecommitdiff
path: root/windows/autohotkey/Source/Methods-Layers.ahk
diff options
context:
space:
mode:
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()