[GH-ISSUE #359] Keyboard not responding correctly #256

Open
opened 2026-02-27 22:08:45 +03:00 by kerem · 9 comments
Owner

Originally created by @Guigxs on GitHub (Oct 13, 2021).
Original GitHub issue: https://github.com/sickcodes/Docker-OSX/issues/359

Hi all,
First of all, thanks a lot for all the work you've done.

I just installed the macOS BigSur docker and I set up my keyboard to Belgian (because my laptop keyboard is azerty).
But when I want to write something to the VM through VNC, the keys are not correctly mapped. For example, when I press "a" on my keyboard, the screen displays "q".
The problem is that I cannot access any special characters such a "@" or " . ", which is not so good because I need to connect my Apple Account.
I already tried to change the keyboard to France, US, azerty... but this is still not working correctly.
I also tried to use the qemu command : (qemu) sendkey @ but the result is the same.

I don't know if this issue is related to Docker-OSX, qemu, macOS or something else...

Do you have any idea on what I can do ?

Thanks in advance !

Here is my docker run command:

sudo docker run -i \
    --device /dev/kvm \
    -p 50922:10022 \
    -p 5999:5999 \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -v macOSVolume:/home/arch/ \
    -e "DISPLAY=${DISPLAY:-:0.0}" \
    -e EXTRA="-display none -vnc 0.0.0.0:99,password=off" \
    -e RAM=8 \
    -e CPU_STRING=6 \
    -e NOPICKER=true \
    sickcodes/docker-osx:big-sur

I'm running the docker on a debian 5.10 server but I have the same issue on my arch-linux laptop.

Originally created by @Guigxs on GitHub (Oct 13, 2021). Original GitHub issue: https://github.com/sickcodes/Docker-OSX/issues/359 Hi all, First of all, thanks a lot for all the work you've done. I just installed the macOS BigSur docker and I set up my keyboard to Belgian (because my laptop keyboard is azerty). But when I want to write something to the VM through VNC, the keys are not correctly mapped. For example, when I press "a" on my keyboard, the screen displays "q". The problem is that I cannot access any special characters such a "@" or " . ", which is not so good because I need to connect my Apple Account. I already tried to change the keyboard to France, US, azerty... but this is still not working correctly. I also tried to use the qemu command : `(qemu) sendkey @` but the result is the same. I don't know if this issue is related to Docker-OSX, qemu, macOS or something else... Do you have any idea on what I can do ? Thanks in advance ! Here is my docker run command: ``` sudo docker run -i \ --device /dev/kvm \ -p 50922:10022 \ -p 5999:5999 \ -v /tmp/.X11-unix:/tmp/.X11-unix \ -v macOSVolume:/home/arch/ \ -e "DISPLAY=${DISPLAY:-:0.0}" \ -e EXTRA="-display none -vnc 0.0.0.0:99,password=off" \ -e RAM=8 \ -e CPU_STRING=6 \ -e NOPICKER=true \ sickcodes/docker-osx:big-sur ``` I'm running the docker on a debian 5.10 server but I have the same issue on my arch-linux laptop.
Author
Owner

@sickcodes commented on GitHub (Oct 15, 2021):

This is a keyboard layout issue that you can change in the VNC client. I use Remmina to connect, and yes some keys are missing but that's because we don't have command button etc.

<!-- gh-comment-id:944001121 --> @sickcodes commented on GitHub (Oct 15, 2021): This is a keyboard layout issue that you can change in the VNC client. I use Remmina to connect, and yes some keys are missing but that's because we don't have command button etc.
Author
Owner

@saied89 commented on GitHub (Jan 15, 2022):

Is there a way to map command button (to super key preferably)?

<!-- gh-comment-id:1013651407 --> @saied89 commented on GitHub (Jan 15, 2022): Is there a way to map command button (to super key preferably)?
Author
Owner

@sickcodes commented on GitHub (Jan 15, 2022):

I haven't been able to, there's definitely some 99.995% likely to be some easy style of hotkey re-assignment stuff inside macOS though

<!-- gh-comment-id:1013703127 --> @sickcodes commented on GitHub (Jan 15, 2022): I haven't been able to, there's definitely some 99.995% likely to be some easy style of hotkey re-assignment stuff inside macOS though
Author
Owner

@saied89 commented on GitHub (Jan 15, 2022):

I simply tried the Change Keyboard Type... wizard (inside Keyboard Preferences) and it seems to work. Also turn on grab on hover from qemu's View menu.

<!-- gh-comment-id:1013708908 --> @saied89 commented on GitHub (Jan 15, 2022): I simply tried the _Change Keyboard Type..._ wizard (inside Keyboard Preferences) and it seems to work. Also turn on _grab on hover_ from qemu's View menu.
Author
Owner

@sickcodes commented on GitHub (Jan 15, 2022):

Awesome, feel free to submit a Pull Request if you think it'll help!

RE: wizard (inside Keyboard Preferences) and it seems to work

<!-- gh-comment-id:1013712547 --> @sickcodes commented on GitHub (Jan 15, 2022): Awesome, feel free to submit a Pull Request if you think it'll help! RE: `wizard (inside Keyboard Preferences) and it seems to work`
Author
Owner

@saied89 commented on GitHub (Jan 26, 2022):

@sickcodes
I'm happy to write the doc. I don't know where such a tip would go though.

<!-- gh-comment-id:1022399862 --> @saied89 commented on GitHub (Jan 26, 2022): @sickcodes I'm happy to write the doc. I don't know where such a tip would go though.
Author
Owner

@gustavotoyota commented on GitHub (Jun 16, 2023):

Had this issue right now. Solved by going to System Preferences > Keyboard > Modifier Keys... and making Control point to Command.
Also, enabling Grab On Hover may have helped.

<!-- gh-comment-id:1595250773 --> @gustavotoyota commented on GitHub (Jun 16, 2023): Had this issue right now. Solved by going to System Preferences > Keyboard > Modifier Keys... and making Control point to Command. Also, enabling Grab On Hover may have helped.
Author
Owner

@Zhenyi-Wang commented on GitHub (Sep 11, 2025):

Modifier Keys

Which version did you use? I cannot find Modifier Keys under Keyboard on my Ventura instance..

<!-- gh-comment-id:3277091444 --> @Zhenyi-Wang commented on GitHub (Sep 11, 2025): > Modifier Keys Which version did you use? I cannot find Modifier Keys under Keyboard on my Ventura instance..
Author
Owner

@Zhenyi-Wang commented on GitHub (Sep 11, 2025):

Modifier Keys

Which version did you use? I cannot find Modifier Keys under Keyboard on my Ventura instance..

Oh no worry I found it.

<!-- gh-comment-id:3277094429 --> @Zhenyi-Wang commented on GitHub (Sep 11, 2025): > > Modifier Keys > > Which version did you use? I cannot find Modifier Keys under Keyboard on my Ventura instance.. Oh no worry I found it.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Docker-OSX#256
No description provided.