Keyboard not responding correctly #256

Open
opened 2025-12-29 00:21:53 +01:00 by adam · 9 comments
Owner

Originally created by @Guigxs on GitHub (Oct 13, 2021).

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). 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.

@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)?

@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

@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.

@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

@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.

@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.

@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..

@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.

@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.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#256