random

This is a bunch of assorted notes on other side-projects and dabllings

photoshop keyboard shortcuts in virtualbox

 
09/17/2015

Sometimes I use Photoshop/Illustrator running in Windows on VirtualBox (terrible I know, but Gimp just isn't comparable... yet). The problem is that alt-clicking and space-dragging don't work out of the box. Here's how to fix it and get your USB tablet working as well.

I'm using Lubuntu and the LXDE/OpenBox window manager captures alt-clicks. This only happens if you have VirtualBox Guest Additions installed which enables mouse integration, meaning that the cursor isn't captured by the guest OS per default. The easiest workaround is to instead use alt-shift-click to zoom out, but this doesn't necessarily work for all photoshop tools. A better quick workaround is to disable mouse-integration until next VM reboot by hitting hostkey+i (hostkey is usually right-hand ctrl). If you don't use alt-click/drag (move windows around) or you're ok with remapping this to e.g. alt-rightclick then on Lubuntu you can comment/edit the following lines in ~/.config/openbox/lubuntu-rc.xml

     <mousebind button="A-Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
      <mousebind button="A-Left" action="Click">
        <action name="Unshade"/>
      </mousebind>
      <mousebind button="A-Left" action="Drag">
        <action name="Move"/>
      </mousebind>

You could change A-Left to A-Right and then remove/change all of the existing A-Right mappings, or just comment out the lines. You will have to log out and log back in for the changes to take effect.

To get space+drag working, on the Windows 8 Guest VM go to PC Settings (click the start button and start typing PC Settings to find it), then go to PC and Devices -> Mouse and Touchpad -> Touchpad, find the option called "To help prevent the cursor from accidentally moving while you type, change the delay before clicks work." and set it to "No delay (always on)".

If you use a tablet, go to VirtualBox settings for the VM and set System -> Motherboard -> Pointing Device to "PS/2 Mouse" (don't use the USB Tablet setting), then go to USB, hit the plus icon on the right and click your USB tablet on the list. I use a cheap Wacom Intuos CTL-480 and it works great. If you experience lag when using the tablet e.g. in Photoshop then disable VirtualBox mouse-integration (host+i when in the Guest VM). Pressure-sensitivy will still work with these settings and it will drastiacally reduce lag..