How to change the Host key in VirtualBox on OS XPublished 2013-3-12
Watch on YouTube: youtu.be/2j25NcCBC80
By default OS X's Cmd key (aka Win or Super) does annoying things in VirtualBox. Here's how you fix that - and even make it do useful things!
Make VirtualBox's Host key not annoyning
- Open Spotlight
- Type VirtualBox (aka VirtualBox Manager)
- Hit the
⌘ + ,to open VirtualBox Preferences (you could select Preferences from the VirtualBox context menu in the upper left of the screen up by the Apple Menu)
- Select the Input tab
- Click the ⟳ (refresh?) icon on the right (directly above OK)
- Click in the Host Key box (where in now reads None)
- Hit a key combination for the new Host Key (or just leave it as None)
The most common reason to do this is so that when you hit things like
Cmd + C and
Cmd + Q
you don't annoyingly Crash or Quit VirtualBox.
Make the Command key useful
However, even more useful is to remap the command key as the control key (or control + shift).
Since the Linux gurus refer to Command as Super I was able to change my search terms and find Binding Super+C Super+V to Copy and Paste
Add these lines
remove mod4 = Super_L keysym Super_L = Control_L add Control = Control_L
And load the new configuration
Remedial Control + Shift
On OS X Control performs the function of Control on the commandline and Command performs the function of Control (or Control + Shift) in the GUI.
Although there's no magic to really get this awesomeness with the so-called Super key in Linux you can have remedial support in Gnome Terminal.
- Open Terminal
- Hover over the context menu at the very top
- Open Edit
- Open Shortcut Keys
- Scroll down to Copy Shift + Ctrl + C
- Click on the shortcut once or twice New accelerator... appears
- Hit Command + C
- Repeat for Command + V
Now Command + V (which is remapped to Control) is equivalent to what Shift + Control + V was. Likewise, the new Shift + Control + C will function as the old Control + C and vice-versa.
By AJ ONeal
Did I make your day?
Buy me a coffee