Function keys on a Bluetooth keyboard do not reach the session
Why F1 to F12 on an external keyboard can change brightness or volume instead of sending PF keys, how to check what arrives, and what to use instead.
On a 3270 or 5250 session, F1 to F12 send PF1 to PF12, and Shift+F1 to Shift+F12 send PF13 to PF24. If pressing F3 changes the screen brightness, turns the volume down or does nothing at all, the key is not getting to the session as F3.
The keyboard sends something else
Many compact and multi-device keyboards use the top row for brightness, volume and media controls. They send F1 to F12 only while you hold the Fn key, or after you turn on Fn Lock. Some also have a switch or key combination for the system they are paired with, and the top row changes with it. How to change this depends on the keyboard, so check its manual.
When the key arrives as a media or system key, the session never sees an F key:
Check what the app receives
The key mapping recorder shows whether the key arrives at all:
- Open the sidebar and choose the Keyboard tab.
- Under Add mapping, pick the action you want the key to send, for example PF3.
- Tap Record. It changes to Listening.
- Press the key.
If the button goes back to Record, the key arrived and is now mapped to that action. If it stays on Listening, the key never reached the app: change the keyboard's Fn setting, or use one of the options below. Tap Listening again to stop.
Long-press a mapped key to remove it, or use Reset all to go back to the defaults.
F13 to F24
Keyboards with an extended function row work too: F13 to F24 send PF13 to PF24.
Send PF keys without the function row
- Hold Ctrl and press a number: Ctrl+1 is PF1 and Ctrl+Shift+1 is PF13.
- Tap a label on the host screen, such as
F3=Exit, with Tappable key labels on. - Turn on Utility key bar for F1 to F24 on screen. Ctrl+Alt+F turns it on and off.
All of these are in Send PF1 to PF24 from a keyboard with no function row.