Keyboard mapping

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
vr8ce
Posts: 6
Joined: 22. Dec 2009, 02:57
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Win7

Keyboard mapping

Post 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!
rpmurray
Volunteer
Posts: 918
Joined: 3. Mar 2009, 00:29
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 7, Mac OS X (various flavors)
Location: Between Heaven and Hell

Re: Keyboard mapping

Post 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.
vr8ce
Posts: 6
Joined: 22. Dec 2009, 02:57
Primary OS: Mac OS X other
VBox Version: OSE other
Guest OSses: Win7

Re: Keyboard mapping

Post 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!
Natural Joe
Posts: 4
Joined: 29. Feb 2008, 16:27

Re: Keyboard mapping

Post by Natural Joe »

A solution to this problem is described here http://forums.virtualbox.org/viewtopic.php?t=4465 (for german and english keyboards).
wandro
Posts: 2
Joined: 4. Feb 2010, 19:58
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 7

Re: Keyboard mapping

Post 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.
Post Reply