The key property enumerates a collection of methods to send keystrokes to the host screen by Javascript.
These methods are associated to the underlying terminal type, and each one represents a different keystroke.
The following example shows how to send ENTER ('@E'):
hs.key.enter();
The following table lists the complete keystroke collection for 3270 and 5250 terminals, with the HLLAPI squence depending on the terminal type:
Name
|
Keystrokes / HLLAPI sequence
|
3270
|
5250
|
enter
|
'@E'
|
*
|
*
|
clear
|
'@C'
|
*
|
*
|
reset
|
'@R'
|
*
|
*
|
attn
|
'@AQ'
|
*
|
*
|
sysreq
|
'@AH'
|
*
|
*
|
eraseeof
|
'@AF'
|
*
|
*
|
erasefield
|
'@F'
|
|
*
|
fieldminus
|
'@A-'
|
|
*
|
fieldplus
|
'@A+'
|
|
*
|
fieldexit
|
'@AE'
|
|
*
|
help
|
'@H'
|
|
*
|
print
|
'@P'
|
|
*
|
pageup
|
'@u'
|
|
*
|
pagedown
|
'@v'
|
|
*
|
backspace
|
'@<'
|
*
|
*
|
backtab
|
'@B'
|
*
|
*
|
tab
|
'@T'
|
*
|
*
|
pa1
|
'@x'
|
*
|
*
|
pa2
|
'@y'
|
*
|
*
|
pa3
|
'@z'
|
*
|
*
|
pf1
|
'@1'
|
*
|
*
|
pf2
|
'@2'
|
*
|
*
|
pf3
|
'@3'
|
*
|
*
|
pf4
|
'@4'
|
*
|
*
|
pf5
|
'@5'
|
*
|
*
|
pf6
|
'@6'
|
*
|
*
|
pf7
|
'@7'
|
*
|
*
|
pf8
|
'@8'
|
*
|
*
|
pf9
|
'@9'
|
*
|
*
|
pf10
|
'@a'
|
*
|
*
|
pf11
|
'@b'
|
*
|
*
|
pf12
|
'@c'
|
*
|
*
|
pf13
|
'@d'
|
*
|
*
|
pf14
|
'@e'
|
*
|
*
|
pf15
|
'@f'
|
*
|
*
|
pf16
|
'@g'
|
*
|
*
|
pf17
|
'@h'
|
*
|
*
|
pf18
|
'@i'
|
*
|
*
|
pf19
|
'@j'
|
*
|
*
|
pf20
|
'@k'
|
*
|
*
|
pf21
|
'@l'
|
*
|
*
|
pf22
|
'@m'
|
*
|
*
|
pf23
|
'@n'
|
*
|
*
|
pf24
|
'@o'
|
*
|
*
|
The following table lists the complete keystroke collection for VT terminals:
Name
|
Keystrokes / HLLAPI sequence
|
enter
|
'@E'
|
left
|
'@L'
|
right
|
'@Z'
|
print
|
'@P'
|
tab
|
'@T'
|
up
|
'@U'
|
down
|
'@V'
|
backspace
|
'@<'
|
backtab
|
'@Q@a'
|
DEL
|
'@M@z'
|
f1
|
'@1'
|
f2
|
'@2'
|
f3
|
'@3'
|
f4
|
'@4'
|
f5
|
'@5'
|
f6
|
'@6'
|
f7
|
'@7'
|
f8
|
'@8'
|
f9
|
'@9'
|
f10
|
'@a'
|
f11
|
'@b'
|
f12
|
'@c'
|
f13
|
'@d'
|
f14
|
'@e'
|
f15
|
'@f'
|
f16
|
'@g'
|
f17
|
'@h'
|
f18
|
'@i'
|
f19
|
'@j'
|
f20
|
'@k'
|
pf1
|
'@M@a'
|
pf2
|
'@M@b'
|
pf3
|
'@M@c'
|
pf4
|
'@M@d'
|
newline
|
'@N'
|
numPad0
|
'@M@0'
|
numPad1
|
'@M@1'
|
numPad2
|
'@M@2'
|
numPad3
|
'@M@3'
|
numPad4
|
'@M@4'
|
numPad5
|
'@M@5'
|
numPad6
|
'@M@6'
|
numPad7
|
'@M@7'
|
numPad8
|
'@M@8'
|
numPad9
|
'@M@9'
|
numPadMinus
|
'@M@-'
|
numPadComma
|
'@M@,'
|
numPadPeriod
|
'@M@.'
|
numPadEnter
|
'@M@e'
|
find
|
'@M@f'
|
insert
|
'@M@i'
|
remove
|
'@M@r'
|
select
|
'@M@s'
|
prevScreen
|
'@M@p'
|
nextScreen
|
'@M@n'
|
NUL
|
'@M@ '
|
SOH
|
'@M@A'
|
STX
|
'@M@B'
|
ETX
|
'@M@C'
|
EOT
|
'@M@D'
|
ENQ
|
'@M@E'
|
ACK
|
'@M@F'
|
BEL
|
'@M@G'
|
BS
|
'@M@H'
|
HT
|
'@M@I'
|
LF
|
'@M@J'
|
VT
|
'@M@K'
|
FF
|
'@M@L'
|
CR
|
'@M@M'
|
SO
|
'@M@N'
|
SI
|
'@M@O'
|
DLE
|
'@M@P'
|
DC1
|
'@M@Q'
|
DC2
|
'@M@R'
|
DC3
|
'@M@S'
|
DC4
|
'@M@T'
|
NAK
|
'@M@U'
|
SYN
|
'@M@V'
|
ETB
|
'@M@W'
|
CAN
|
'@M@X'
|
EM
|
'@M@Y'
|
SUB
|
'@M@Z'
|
ESC
|
'@M@u'
|
FS
|
'@M@v'
|
GS
|
'@M@w'
|
RS
|
'@M@x'
|
US
|
'@M@y'
|
Remarks
Read only property.
See also
|