summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormösi <mösi@b9310e46-f624-0410-8ea1-cfbb3a30dc96>2008-11-30 07:35:23 +0000
committermösi <mösi@b9310e46-f624-0410-8ea1-cfbb3a30dc96>2008-11-30 07:35:23 +0000
commit64086e321a4fe748da78a2ba93a4bb15a47c76e2 (patch)
treeb1b0c369e75d508817896d86485d7376d76a06cb
parent843f9540f52613f6d78e1dd0c523a27cc91a754a (diff)
downloadneo-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.ahk8
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"