I'm trying to use the Apple Wireless keyboard for coding in a terminal (with nano, vim, etc) using a app to access by SSH them in a remote server, and discover that all the function keys (Esc, F1, f2….) are not working.
I have tried with Prompt2, but this will happen with any app because the F1 through F12 keys by default in the iPad are tied to special functions like control brightens.
Is possible to change this?
If not:
- Exist any terminal app that can remap the keys?
- Or exist a code editor with internal ssh terminal that work for remote coding?
Best Answer
When using the Apple Wireless Keyboard with an iPad device, not all function keys work. From Apple's Support Article: Apple Wireless Keyboard and Magic Keyboard compatibility with iOS devices:
Since the Fn keys don't work per Apple, it's a safe bet that you won't be able to remap them. You have to recognize them in order to reassign their function.
This is most likely the reason that you will need to utilize the softkeys provided for by the App.
What you can try is using the Escape sequence: Esc # combination where # is the number of the Fn key you are trying to press (i.e. Esc2 for F2)