summaryrefslogtreecommitdiffstats
path: root/windows/neo-vars/src/source/screenkeyboard.ahk
diff options
context:
space:
mode:
Diffstat (limited to 'windows/neo-vars/src/source/screenkeyboard.ahk')
-rw-r--r--windows/neo-vars/src/source/screenkeyboard.ahk6
1 files changed, 6 insertions, 0 deletions
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,6 +80,12 @@ rerun_bstnupdate:
if (SubStr(GuiComp,1,1)=="U") {
Charcode := "0x" . Substr(GuiComp,2,6)
if (charCode < 0x10000) {
+ 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