Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I'm not using an apple keyboard and don't have a Left ⌘. Can I change the "Host Key" to be the Right ⌘? How?

share|improve this question

4 Answers 4

The GUI setting is under Preferences -> Input -> Virtual Machine:

enter image description here

share|improve this answer

This sets the host key to the right command key (VirtualBox 4.3.10):

VBoxManage setextradata global GUI/Input/HostKeyCombination 54

The command will accept any value, but VirtualBox will not start if you supply an invalid value. 55 is the standard left command key, 61 is the right alt key. I found the values via educated guesses (aka "playing around").

share|improve this answer
    
Your sir are awesome. Why is this not an option in the VirtualBox GUI Ill never understand. –  DelightedD0D Jul 27 at 10:13

You could try adding this to private.xml in KeyRemap4MacBook:

<autogen>--KeyToKey-- KeyCode::COMMAND_R, KeyCode::COMMAND_L</autogen>

It might not work if you don't have a physical keyboard with a left command though.

share|improve this answer
    
thx. It's an idea;haven't tried yet as I'm holding out to see if anyone knows of a native way to do it. Turns out it's not too critical provided I ensure that the "mini toolbar" is enabled for full-screen mode as that allows me use the mouse to get out again... (provided the guest has a working mouse). –  John Mee Feb 7 '13 at 1:05

Karabiner works very well

https://pqrs.org/osx/karabiner/

The tool has various options to set PC preferred key bindings in a MAC environment. Like remap

  • Ctrl-S to file save
  • F2 for item rename
  • etc

You can search for all PC specific settings by typing the letters 'P' and 'C' in the search box.

It made my default keyboard short cuts work very smooth in all different MAC applications.

I am using a MS SideWinder X4 Keyboard

share|improve this answer
    
Could you expand your answer, possibly to include the name of the predefined setting that needs to be enabled or a private.xml that could be required? Simply giving the name of an application is not ideal and padding your answer to circumvent the 30 character minimum isn't the way. –  George Garside Aug 29 at 18:52

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.