# Keyboard maps

Source: https://wndsoftware.com/docs/keyboard-maps

WND Terminal starts with a standard PC-to-3270 layout. The keymap editor changes any key, for all sessions or for one.

By default Enter and right Ctrl send Enter, F1 to F12 send PF1 to PF12, Shift+F1 to F12 send PF13 to PF24, and Escape is Reset. To change a key, open Ctrl+K > Keyboard maps, press Add or change a key, press the key and choose what it does.


## Default keys

On a small screen, swipe the table to read all columns.


| PC key | 3270 key |
| --- | --- |
| Enter, right Ctrl | Enter |
| F1 to F12 | PF1 to PF12 |
| Shift+F1 to Shift+F12 | PF13 to PF24 |
| Page Up, Page Down | PF7, PF8 |
| Alt+1, Alt+2, Alt+3 | PA1, PA2, PA3 |
| Pause, Ctrl+L | Clear |
| Tab, Shift+Tab | Tab, Back Tab |
| Home | Home (first input field) |
| End | Erase EOF |
| Insert | Insert mode on and off |
| Delete, Backspace | Delete, delete left |
| Escape | Reset |
| Ctrl+F9 | Cursor Select (the light pen at the cursor) |
| Ctrl+F8 | APL keyboard on and off |

Cursor Select and the APL keyboard are for mainframe sessions. See [Screen sizes, light pen and APL](https://wndsoftware.com/docs/screen-sizes).


## Change a key

- Press Ctrl+K and choose Keyboard maps .
- Make a map, or open one you already have.
- Press Add or change a key .
- Press the key. Hold Shift, Ctrl or Alt with it if you want. Right-hand Ctrl and Alt count as separate keys.
- Choose what the key does.

To make Ctrl+J send PF5, for example, add a key, press Ctrl+J and choose PF5.


### What a key can do

- Send Enter, Clear, PF1 to PF24 or PA1 to PA3.
- Act as an editing or cursor key.
- Copy, paste or print.
- Type a character.
- Run a macro, such as “Run the macro Logon”.
- Nothing, to switch a key off.


## One map for everything, or one per session

A map can apply to all sessions or to one. A saved connection remembers its map, so the Production session can use different keys from Test.


## Imported maps

Maps imported from PCOMM `.kmp` files or from Reflection open in the same editor and change the same way. An imported map takes precedence over WND Terminal’s own copy and paste keys. Keys WND Terminal can’t map are listed when you import. See [Import from PCOMM](https://wndsoftware.com/docs/import-pcomm) and [Import from Reflection](https://wndsoftware.com/docs/import-reflection).


## App shortcuts

These shortcuts control the app itself. None is a 3270 key, so the mainframe keyboard above doesn’t change. On a Mac, use ⌘ in place of Ctrl, except Ctrl+W, which stays Ctrl because ⌘W closes the window.

On a small screen, swipe the table to read all columns.


| Shortcut | Does |
| --- | --- |
| Ctrl+K | Command palette |
| Ctrl+T | New tab |
| Ctrl+W | Close tab (asks first if it’s connected) |
| Ctrl+Tab, Ctrl+Shift+Tab | Next or previous tab |
| Ctrl+1 to Ctrl+9 | Go to tab 1 to 9 |
| Ctrl+\ | Side by side on or off |
| Ctrl+Alt+Left, Ctrl+Alt+Right | Keyboard to the left or right side |
| Ctrl+C | Copy the selection, or the whole screen |
| Ctrl+Shift+C | Copy as table, for Excel |
| Ctrl+V | Paste, field by field |
| Ctrl+P | Print the screen |
| Ctrl+E | Explain this screen |
| Ctrl+Space | Type the dimmed suggestion |
| Ctrl +, Ctrl −, Ctrl 0 | Larger, smaller, fit the window |


## Copy and paste

Drag across the screen to select a rectangle. Shift+click extends it, and a plain click still moves the cursor. Ctrl+C copies the selection, or the whole screen when nothing is selected. Ctrl+Shift+C copies as a table that Excel, Word and Outlook paste as real cells, and values such as `0042` keep their leading zeros.

Ctrl+V pastes field by field. A tab moves to the next input field and a line break to the next line. Text that doesn’t fit carries on in the next input field, never over a protected label. If an imported PCOMM or Reflection map uses these keys, the map wins.


## Clickable keys

Key names the mainframe writes on the screen can be clicked, such as `F3=Exit`, `PF8 Forward`, `PA1` or “Press ENTER”. Only text the mainframe wrote counts, never what someone typed into a field. Hovering shows which key a click presses. Turn them off under Display > Clickable keys, or from Ctrl+K.


## Questions


### Can a key run a macro?

Yes. In the keymap editor, choose Run the macro and pick the macro, such as Logon.


### Can different sessions use different keys?

Yes. A map can apply to all sessions or to one, and a saved connection remembers its map.


### Which keys change on a Mac?

App shortcuts use Command in place of Ctrl, except Ctrl+W to close a tab. The 3270 keys stay the same.

Technical reviewer: [Albert Joseph](https://wndsoftware.com/authors/albert-joseph), WND Software.
