jlesage / docker-firefox

Docker container for Firefox
MIT License
1.4k stars 266 forks source link

howto change keyboard layout? #175

Open 3x3cut0r opened 1 year ago

3x3cut0r commented 1 year ago

hi, is there a way to change the keyboard layout to german to be able to write special characters like 'äüöÄÜÖ'

jlesage commented 1 year ago

Not sure I understand the question/problem. You should be able to do it on host itself ?

3x3cut0r commented 1 year ago

so you mean the keyboard layout is based on the host kb layout? what is if i want another layout inside the container as on the host?

jlesage commented 1 year ago

Exactly. The VNC protocol takes care of that. A keyboard layout is not really used inside the container.

3x3cut0r commented 1 year ago

can i somehow change the keyboard layout inside a docker container? for example in the linuxserver/firefox container there is a possibility with a "KEYBOARD"-environment variable to change the layout. could you also implement this?

jlesage commented 1 year ago

linuxserver/firefox is using RDP instead of VNC. This is why a keyboard layout make sense in that case.

Keyboard layout doesn't apply with VNC. So I don't know how this could be done... Why using the host's keyboard layout doesn't work for you ?

3x3cut0r commented 1 year ago

unfortunetaly not :/ host and guest need to be different