How do I make this dropdown work without it displaying escape backslashes?

These are the dropdown options:

0
1
2
3
4
5
6
7
8
9
any key
up arrow
down arrow
right arrow
left arrow
space
\=
+
-
_
`
\~
!
@
#
$
%
^
&
*
(
)
[
]
\{
\}
\\
|
;
'
:
"
,
.
/
<
>
?
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z

function(){
return {
"=":"="
, "+":"+"
,"\u223C":"~"
,"-":"-"
,"}":"}"
,"{":"{"
,"\":"\"}
}

Stop it with pang!

it works if you take out the backslashes, or just use two backslashes. Here's a fixed code.

function(){
return {
"=" : "=",
"+" : "+",
"\u223C" : "~",
"-" : "-",
"}" : "}",
"{" : "{",
"\\" : "\\"}
}

I tried that just now, with this:

0
1
2
3
4
5
6
7
8
9
any key
up arrow
down arrow
right arrow
left arrow
space
function(){
return {
"=" : "=",
"+" : "+",
"\u223C" : "~",
"-" : "-",
"}" : "}",
"{" : "{",
"\\" : "\\"}
}
-
_
`
!
@
#
$
%
^
&
*
(
)
[
]
|
;
'
:
"
,
.
/
<
>
?
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z

but it doesn't work.

well, after a while, I got it working. I created a script to automate most of it, though there were a few small things I had to manually do.

function(){
return {
"0" : "0",
"1" : "1",
"2" : "2",
"3" : "3",
"4" : "4",
"5" : "5",
"6" : "6",
"7" : "7",
"8" : "8",
"9" : "9",
"any key" : "any key",
"up arrow" : "up arrow",
"down arrow" : "down arrow",
"right arrow" : "right arrow",
"left arrow" : "left arrow",
"space" : "space",
"\u003D" : "=",
"+" : "+",
"-" : "-",
"_" : "_",
"`" : "`",
"\u223C" : "~",
"!" : "!",
"@" : "@",
"#" : "#",
"$" : "$",
"%" : "%",
"^" : "^",
"&" : "&",
"*" : "*",
"(" : "(",
")" : ")",
"[" : "[",
"]" : "]",
"\u007B" : "{",
"\u007D" : "}",
"\u005C" : "\\",
"|" : "|",
";" : ";",
"'" : "'",
":" : ":",
"\"" : "\"",
"," : ",",
"." : ".",
"/" : "/",
"<" : "<",
">" : ">",
"?" : "?",
"a" : "a",
"b" : "b",
"c" : "c",
"d" : "d",
"e" : "e",
"f" : "f",
"g" : "g",
"h" : "h",
"i" : "i",
"j" : "j",
"k" : "k",
"l" : "l",
"m" : "m",
"n" : "n",
"o" : "o",
"p" : "p",
"q" : "q",
"r" : "r",
"s" : "s",
"t" : "t",
"u" : "u",
"v" : "v",
"w" : "w",
"x" : "x",
"y" : "y",
"z" : "z"}
}

This should work only if you enable JS. I'll look into making backslashes work properly.

Ok. Where I'm using it is the text engine here.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.