Hello
I cannot find any documentation to update the keyboard layout to "azerty".
Thank you for your help,
Emeric
- Michael Lynch @michael2022-05-13 12:05:11.255Z
This was necessary in the very early days of TinyPilot, but since 2020-12-30, you should no longer have to specify the keyboard layout from TinyPilot. If the target computer is AZERTY, it should see keystrokes in the correct layout.
- EEmeric Verschuur @emeric
My OS locale is in en_US but I want to switch the keyboard in azerty in my browser : how can-I do this?
- Diego @diego
Hello @emeric - Did you mean switching the on-screen keyboard, in the TinyPilot web interface, to AZERTY? That is not possible, unfortunately.
However, you can SSH in and hack around a bit to create your custom layout:
# Create a backup before proceeding! cd /opt/tinypilot/app/templates/custom-elements/ cp -p on-screen-keyboard.html on-screen-keyboard.html.original # Edit the file sudo nano on-screen-keyboard.html # Reload browser after editing!
For example, to replace the Q key in the virtual keyboard to A, you would change this line:
<keyboard-key code="KeyQ">Q</keyboard-key>
to this<keyboard-key code="KeyA">A</keyboard-key>
NOTE: this would only change the virtual on-screen keyboard in the TinyPilot web GUI. It will have no effect on your physical keyboard whatsoever.
- EEmeric Verschuur @emeric
Hello @diego, in fact, it's concerning the physical keyboard and the mapping is OK on the OS (azerty keymap) but strangely, not in the UEFI firmware setup (qwerty keymap) and the UEFI shell where I found this issue...
At the same time, thanks for the tip with the virtual keyboard :) (it could be useful...)
- Diego @diego
Hi @emeric - You would need to set the keyboard layout in the target computer, both at the OS level and at the UEFI firmware setup level (if that's possible). TinyPilot will see keystrokes in the same layout you configure for the target computer.