Page 1 of 1

Keyboard mapping

Posted: 24. Dec 2009, 18:23
by vr8ce
VirtualBox 3.1.2 on Mac Snow Leopard 10.6.2 host, Win7 Ultimate guest

Is there documentation on how VB maps the keyboard? I've searched for "keyboard" through the entire User Manual and can't find anything.

I also can't find any indication that VB allows keys to be re-mapped, is this true? I want to swap the Alt key (which VB apparently has mapped to Option) and the Windows key (which VB apparently has mapped to Command) — is this possible?

Thanks!

Re: Keyboard mapping

Posted: 24. Dec 2009, 21:22
by rpmurray
Is there documentation on how VB maps the keyboard?
No.
I also can't find any indication that VB allows keys to be re-mapped, is this true?
Yes, basically all keys, other than the Host key, are sent directly to the guest OS.

I haven't tried it myself, but you may be able to remap the keys using a Windows remapping utility within the guest, Microsoft Keyboard Layout Creator or KeyTweak, for example. Or by editing the Windows Registry manually DANGER Will Robinson!.

Add appropriate weasel words about how you do this at your own risk.

Re: Keyboard mapping

Posted: 27. Dec 2009, 07:40
by vr8ce
Thanks for the KeyTweak link, that's a new one to me, and I thought I'd heard of every Windows utility of any use there was. :) That did the trick. I didn't realize it was a scancode issue (I'm puzzled why the Mac keyboards send in their keycodes that way), I thought it was a VB issue.

Still hoping for a native VB solution, so I entered a ticket, but KeyTweak will fill the bill in the meantime. Thanks again!

Re: Keyboard mapping

Posted: 23. Jan 2010, 00:06
by Natural Joe
A solution to this problem is described here http://forums.virtualbox.org/viewtopic.php?t=4465 (for german and english keyboards).

Re: Keyboard mapping

Posted: 5. Feb 2010, 13:09
by wandro
I use Windows 7 under VirtualBox on an iMac with Snow Leopard and German keyboard. The Windows registry hack presented in http://www.virtualbox.org/ticket/2996 works for me: "<>" and "^°" are on the proper keys now.