Docker-OSX icon indicating copy to clipboard operation
Docker-OSX copied to clipboard

Keyboard not responding correctly

Open Guigxs opened this issue 3 years ago • 7 comments

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.

Guigxs avatar Oct 13 '21 20:10 Guigxs

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 avatar Oct 15 '21 04:10 sickcodes

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

saied89 avatar Jan 15 '22 09:01 saied89

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 avatar Jan 15 '22 15:01 sickcodes

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 avatar Jan 15 '22 16:01 saied89

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 avatar Jan 15 '22 16:01 sickcodes

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

saied89 avatar Jan 26 '22 17:01 saied89

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 avatar Jun 16 '23 20:06 gustavotoyota