summaryrefslogtreecommitdiff
path: root/windows
diff options
context:
space:
mode:
authormösi <mösi@b9310e46-f624-0410-8ea1-cfbb3a30dc96>2008-11-01 09:31:45 +0000
committermösi <mösi@b9310e46-f624-0410-8ea1-cfbb3a30dc96>2008-11-01 09:31:45 +0000
commit8b936f90f30bafdf356862f3be2b5738097e7144 (patch)
treebc1b7c0a955fec72b161f7fa964764a691273eb2 /windows
parent4083e59dec000703ff968af3b07c2bbd2c4f12a0 (diff)
downloadneo-layout-8b936f90f30bafdf356862f3be2b5738097e7144.tar.gz
neo-layout-8b936f90f30bafdf356862f3be2b5738097e7144.tar.bz2
neo-layout-8b936f90f30bafdf356862f3be2b5738097e7144.zip
Unshifting verallgemeinert und auf LShift/RShift angepasst.
git-svn-id: https://svn.neo-layout.org@1079 b9310e46-f624-0410-8ea1-cfbb3a30dc96
Diffstat (limited to 'windows')
-rw-r--r--windows/neo-vars/neo20-vars.ahk33
1 files changed, 21 insertions, 12 deletions
diff --git a/windows/neo-vars/neo20-vars.ahk b/windows/neo-vars/neo20-vars.ahk
index ce5b917..e56ce3f 100644
--- a/windows/neo-vars/neo20-vars.ahk
+++ b/windows/neo-vars/neo20-vars.ahk
@@ -124,13 +124,13 @@ CharOut(char) {
global
if (DNCS%char% != "") {
seq := DNCS%char% . UPCS%char%
- if (isShiftPressed and (isMod2Locked or (char == "U00B4")))
- seq := "{Shift Up}" . seq . "{Shift Down}"
+ if (isShiftPressed and UNSH%char%)
+ seq := FixSeq(seq,isShiftLPressed,isShiftRPressed)
send % "{blind}" . seq
} else if (CS%char% != "") {
seq := "{" . CS%char% . "}"
- if (isShiftPressed and (isMod2Locked or (char == "U20AC")))
- seq := "{Shift Up}" . seq . "{Shift Down}"
+ if (isShiftPressed and UNSH%char%)
+ seq := FixSeq(seq,isShiftLPressed,isShiftRPressed)
send % "{blind}" . seq
} else
SendUnicodeChar("0x" . SubStr(char,2))
@@ -140,14 +140,14 @@ CharOutDown(char) {
global
if (DNCS%char% != "") {
seq := DNCS%char%
- if (isShiftPressed and (isMod2Locked or (char == "U00B4")))
- seq := "{Shift Up}" . seq . "{Shift Down}"
+ if (isShiftPressed and UNSH%char%)
+ seq := FixSeq(seq,isShiftLPressed,isShiftRPressed)
send % "{blind}" . seq
} else if (CS%char% != "") {
seq := CS%char%
seq := "{". seq . " down}"
- if (isShiftPressed and (isMod2Locked or (char == "U20AC")))
- seq := "{Shift Up}" . seq . "{Shift Down}"
+ if (isShiftPressed and UNSH%char%)
+ seq := FixSeq(seq,isShiftLPressed,isShiftRPressed)
send % "{blind}" . seq
} else
SendUnicodeCharDown("0x" . SubStr(char,2))
@@ -157,19 +157,28 @@ CharOutUp(char) {
global
if (DNCS%char% != "") {
seq := UPCS%char%
- if (isShiftPressed and isMod2Locked)
- seq := "{Shift Up}" . seq . "{Shift Down}"
+ if (isShiftPressed and UNSH%char%)
+ seq := FixSeq(seq,isShiftLPressed,isShiftRPressed)
send % "{blind}" . seq
} else if (CS%char% != "") {
seq := CS%char%
seq := "{". seq . " up}"
- if (isShiftPressed and (isMod2Locked or (char == "U20AC")))
- seq := "{Shift Up}" . seq . "{Shift Down}"
+ if (isShiftPressed and UNSH%char%)
+ seq := FixSeq(seq,isShiftLPressed,isShiftRPressed)
send % "{blind}" . seq
} else
SendUnicodeCharUp("0x" . SubStr(char,2))
}
+FixSeq(seq,LP,RP) {
+ ret := seq
+ if (LP)
+ ret := "{Shift Up}" . ret . "{Shift Down}"
+ if (RP)
+ ret := "{RShift Up}" . ret . "{RShift Down}"
+ return ret
+}
+
CharProc(subroutine) {
global
if (subroutine == "_Rom") {