From a43f762d6dee96b035b170be8fca0c10e9d4f622 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?m=C3=B6si?= Date: Mon, 20 Sep 2010 10:51:11 +0000 Subject: =?UTF-8?q?=E2=80=A2=20fixed=20issue=20#223:=20&=20auf=20Ebene=203?= =?UTF-8?q?=20wird=20jetzt=20richtig=20auf=20der=20Bildschirmtastatur=20an?= =?UTF-8?q?gezeigt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.neo-layout.org@2349 b9310e46-f624-0410-8ea1-cfbb3a30dc96 --- windows/neo-vars/src/source/screenkeyboard.ahk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'windows') diff --git a/windows/neo-vars/src/source/screenkeyboard.ahk b/windows/neo-vars/src/source/screenkeyboard.ahk index c411e3c..54fe8fb 100644 --- a/windows/neo-vars/src/source/screenkeyboard.ahk +++ b/windows/neo-vars/src/source/screenkeyboard.ahk @@ -80,7 +80,13 @@ rerun_bstnupdate: if (SubStr(GuiComp,1,1)=="U") { Charcode := "0x" . Substr(GuiComp,2,6) if (charCode < 0x10000) { - NumPut(CharCode, ptrU, GuiPos, "UShort") + if (charCode == 0x26) { + ; double any Ampersand (&) to avoid being replaced with + ; underscore (Windows Shortcut Key terminology) + NumPut(CharCode, ptrU, GuiPos, "UShort") + GuiPos := GuiPos + 2 + } + NumPut(CharCode, ptrU, GuiPos, "UShort") } else { ; surrogates NumPut(0xD800|((charCode-0x10000)/1024) , ptrU, GuiPos, "UShort") -- cgit v1.2.3