summaryrefslogtreecommitdiff
path: root/windows/autohotkey/Source
diff options
context:
space:
mode:
Diffstat (limited to 'windows/autohotkey/Source')
-rw-r--r--windows/autohotkey/Source/Methods-Layers.ahk11
-rw-r--r--windows/autohotkey/Source/Methods-Other.ahk5
2 files changed, 14 insertions, 2 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()
diff --git a/windows/autohotkey/Source/Methods-Other.ahk b/windows/autohotkey/Source/Methods-Other.ahk
index 610f763..dbd17d7 100644
--- a/windows/autohotkey/Source/Methods-Other.ahk
+++ b/windows/autohotkey/Source/Methods-Other.ahk
@@ -275,7 +275,10 @@ outputChar(val1,val2)
c := val1
else
c := val2
- send % "{blind}" . c
+ if GetKeyState("Shift","P") and isMod2Locked
+ send % "{blind}{Shift Up}" . c . "{Shift Down}"
+ else
+ send % "{blind}" . c
if (PriorDeadKey = "comp")
CompKey := c
}