ASNA Browser Terminal™ Admin Manual

5250 Terminal Keyboard Mapping

This topic contains multiple sections.

Default Keyboard Setting
Customizing the Keyboard
Adding Hot-keys for International Characters

Note that some of these keyboard actions are accessible through the Menu bar.

Default Keyboard Settings

The following keyboard 'actions' are identified and mapped to either an IBM Aid key that gets submitted or a terminal command to edit field content or to move the cursor position.

Action Description Default
Mapping
Comment
'ATTN' Alerts the host system that a requested function is not being honored. Ctrl + F5 Sets Bit 1 on Telnet flags header field and submits the page to the IBM i. See the Telnet flags below.
Also accessible on the menu bar.
'BEGIN' Place cursor at the start of field. Ctrl + F9
'CLEAR' Submit QSN_CLEAR (0xbd) to IBM i. Scroll Lock Also accessible on the menu bar.
'COPY' Copy selected text to the Windows clipboard. Ctrl + C
IE Menu 'Copy'
Context menus do not work. IE Browser Edit menu is supported.
'CURSOR' Toggle between normal cursor and cross-hair cursor. (None) Cross-hair cursor not implemented.
'CUT' Cut selected text (inside input capable field). Ctrl + X
IE Menu 'Cut'
Context menus do not work. IE Browser Edit menu is supported.
'DELETE' Delete character at cursor position. Delete
Del
JavaScript does not distinguish between 'Delete' and 'Del'.
'DOWN' Move cursor one position down. any Down Arrow JavaScript does not distinguish between the different 'Down Arrow' keys on the keyboard.
'DUP' If field has DUP attribute, the field is filled with the DUP characters from the cursor postion. Ctrl + F6
'END' Place cursor at the end of a field.
(Note: this is different from LAST, which positions the cursor at the last character entered into the field).
Ctrl + F11
'ENTER' Submit QSN_ENTER (0xf1) to IBMi. any Enter JavaScript does not distinguish between the different 'Enter' keys on the keyboard.
'ERASE' Clears all input fields and sets them to their default value. (None) Not mapped to a key. On the Menu bar.
'F1' ... 'F24' Submit QSN_F1 (0x31)... QSN_F24 (0xbc) to IBMi. F1 ... F12
Shift + F1 ... Shift + F12
'FASTDOWN' Move cursor three positions down. Ctrl + Down Arrow
'FASTLEFT' Move cursor three positions left. Ctrl + Left Arrow
'FASTRIGHT' Move cursor three positions right. Ctrl + Right Arrow
'FASTUP' Move cursor three positions up. Ctrl + Up Arrow
'FIELDMINUS' Erase the rest of the field and move the cursor to the next field.
For numeric fields, change the sign to negative.
Shift + - (numeric keypad) Not mapped to a key.
'FIELDPLUS' Erase the rest of the field and move the cursor to the next field.
For numeric fields, change the sign to positive.
Shift + + (numeric keypad) Not mapped to a key.
'FIELDEXIT' Erase the rest of the field and move the cursor to the next field. Shift + Enter Not mapped to a key.
'FIELDEXITENTER' Justify the field and send the ENTER command to the IBM i. Ctrl + Enter
'HELP' Help in error state. When input validation fails, error codes are set and a help on error request is sent to the IBM i. (None) Not mapped to a key.
Sets Bit 7 on Telnet flags header field. Sets error code in 5250 data stream and submits the page to the IBM i.
Also accessible on the menu bar.
'HEX' Shows a dialog where Hex can be typed to enter a character not on the keyboard. If only one character is entered, the character will be taken verbatim. (None) Not mapped to a key.
Accessible on the menu bar.
'INSERT' Toggle insert mode. Insert
Ins
'LAST' Jump to the last character of a field. any End JavaScript does not distinguish between the different 'End' keys on the keyboard.
'LEFT' Move cursor one position left. any Left Arrow JavaScript does not distinguish between the different 'Left Arrow' keys on the keyboard.
'LEFTDELETE' Delete character left of the cursor. Backspace
'NEWLINE' Jump to next line Shift + Enter
'NEXT' Jump to the next field. Tab
'PASTE' Copy the contents of the Clipboard to the current cursor's position. Ctrl + V (IE 'Paste' menu)
'PGDN' Roll UP the screen Page Down
'PGUP' Roll DOWN the screen Page Up
'PREVIOUS' Jump to the previous field. Shift + Tab
'PRINT' Submit QSN_PRINT (0xf6) to the IBMi. (None) Not mapped to a key.
'RECORD' Record Backspace (Home). Put cursor at the Home position (first input field, position 1). any Home JavaScript does not distinguish between the different 'Home' keys on the keyboard.
'RESET' Opens the keyboard for input (if keyboard is LOCKED due to error). Esc May be re-mapped to Ctrl + R. See Customizing the Keyboard.
'REDIRECT:Page' Navigate to new Page (None) Page is relative to the location of the Asna5250Terminal.aspx. It could specify a folder but make sure to provide a way to get back to the Asna5250Terminal.aspx page.
'RIGHT' Move cursor one position right. any Right Arrow JavaScript does not distinguish between the different 'Right Arrow' keys on the keyboard.
'SYSREQ' System request interrupt. Shift + Esc
Ctrl + F4
Not implemented.
'UP' Move cursor one position Up. any Up Arrow JavaScript does not distinguish between the different 'Up Arrow' keys on the keyboard.

Telnet Flags

A few of the 'Actions' that submit but do not send Aid Key to the IBM i need to effect the Telnet message header instead. According to http://www.ietf.org/rfc/rfc1205.txt, there is a 16 bit flag field in the Telnet header. Eight of those bits are reserved and should be set to zero.

Bit Description
0 ERR This bit is set to indicate a data stream output error. The negative response code is sent as data following the op code field.
1 ATN This bit is set to indicate that the 5250 attention key was pressed.
2, 3, 4 * These bits are reserved (set to zero).
5 SRQ This bit is set to indicate that the 5250 System Request key was pressed.
6 TRQ This bit is set to indicate that the 5250 Test Request key was pressed.
7 HLP This bit is set to indicate the Help in Error State function. The error code is sent as data following the header and is a four digit packed decimal number. For example, an error code of '0005'X indicates the operator attempted to type in an area of the display that is not enabled for input.
8 thru 15 * These bits are reserved (set to zero).

Return to the top

Special Note:

The references to the directory location of Asna5250Terminal.aspx in the above information specifies ~/Themes/Current/ as the location used. Refer to Setting the location of the Asna5250Terminal.aspx page for more information.

See Also

5250 Terminal Branding