diff options
author | mösi <mösi@b9310e46-f624-0410-8ea1-cfbb3a30dc96> | 2008-11-30 07:35:23 +0000 |
---|---|---|
committer | mösi <mösi@b9310e46-f624-0410-8ea1-cfbb3a30dc96> | 2008-11-30 07:35:23 +0000 |
commit | 64086e321a4fe748da78a2ba93a4bb15a47c76e2 (patch) | |
tree | b1b0c369e75d508817896d86485d7376d76a06cb | |
parent | 843f9540f52613f6d78e1dd0c523a27cc91a754a (diff) | |
download | neo-layout-64086e321a4fe748da78a2ba93a4bb15a47c76e2.tar.gz neo-layout-64086e321a4fe748da78a2ba93a4bb15a47c76e2.tar.bz2 neo-layout-64086e321a4fe748da78a2ba93a4bb15a47c76e2.zip |
Fixed: Modifier-Proc-Funktionen werden in PressHook-ed Funktionen nicht wie benötigt aufgerufen, was bewirkt, dass jeglicher Druck auf einen Mod (wie bspw. Mod4 für die Numpad-Ziffern) das Proc beendet.
git-svn-id: https://svn.neo-layout.org@1256 b9310e46-f624-0410-8ea1-cfbb3a30dc96
-rw-r--r-- | windows/neo-vars/src/source/tools.ahk | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/windows/neo-vars/src/source/tools.ahk b/windows/neo-vars/src/source/tools.ahk index d248cf4..d00db25 100644 --- a/windows/neo-vars/src/source/tools.ahk +++ b/windows/neo-vars/src/source/tools.ahk @@ -58,7 +58,9 @@ GenRomanDigit(Pos, DigitIs, DigitTest, str0, str1, str2, str3, str4, str5) { PressHookRoman(PhysKey, ActKey, Char) {
global
- if ((Char == "U0030") or (Char == "SN__0"))
+ if (SubStr(Char,1,1) == "P")
+ CharStarDown(PhysKey, ActKey, Char)
+ else if ((Char == "U0030") or (Char == "SN__0"))
RomanSum := 10*RomanSum
else if ((Char == "U0031") or (Char == "SN__1"))
RomanSum := 10*RomanSum + 1
@@ -191,7 +193,9 @@ CharProcDUni() { PressHookUni(PhysKey, ActKey, Char) {
global
- if ((Char == "U0030") or (Char == "SN__0"))
+ if (SubStr(Char,1,1) == "P")
+ CharStarDown(PhysKey, ActKey, Char)
+ else if ((Char == "U0030") or (Char == "SN__0"))
UniSum := UniSum . "0"
else if ((Char == "U0031") or (Char == "SN__1"))
UniSum := UniSum . "1"
|