From a43f762d6dee96b035b170be8fca0c10e9d4f622 Mon Sep 17 00:00:00 2001 From: mösi Date: Mon, 20 Sep 2010 10:51:11 +0000 Subject: • fixed issue #223: & auf Ebene 3 wird jetzt richtig auf der Bildschirmtastatur angezeigt. 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/neo-vars') 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