Sending [ and ] as keystroke with an EN16 encoder | Intech Studio
💬 general Grid

Sending [ and ] as keystroke with an EN16 encoder

Staubi · · 7 replies

I am building up media board with a raspi controlled by a EN16. As a player software I use MPV.
MPV can increase/decrease the video speed by the key bindings [ and ] which I want to send by rotating an encoder left/right. Everything works well but I do not manage to send [ and ] in the german keyboard layout. The key combination would be R ALT + 8 and R ALT + 9, which does not work. I can send 8 and 9 by rotating without a problem, but the R ALT does not get sent (?) properly.
It would be helpful if the brackets ()[]{} would be added to the selectable keystrokes in the german keyboard layout.

Replies (7)

0xdb 0xdb ·

How are you sending the key combo? Do other combinations work?

Staubi ·

This is the codeblock for changing the video speed. I use the rotate left/right function of the encoder. Rotating left should send [ which does not work. On the german keyboard layout [ is invoked by AltGr + 8. Sending [ by hitting AltGr + 8 works well from a regular german keyboard.

Bildschirmfoto_zu_2026-02-09_21-54-15.png
Staubi ·

This is the code for changing the video zoom. It sends the key combination ALT + - which works perfectly. Any ideas what makes the difference?

Bildschirmfoto_zu_2026-02-09_21-57-54.png
0xdb 0xdb ·

Yeah, AFAIR, alt and altgr are the same in some layouts (US, for example), it might be sending the same for both R Alt and L Alt

Staubi ·

In gernam keyboard layout Alt and AltGr seem to be different. Here you need AltGr to type @€[]{} and other characters. As a workaround I could switch the Raspi to english keyboard layout and use the english layout instead.

sukuwc ·

Right Alt seems to be handled incorrectly in the firmware

sukuwc ·

WHat os are you using?

Discord

View on Discord

This post is from the Intech Studio Discord community.

Open thread →