Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

In Ubuntu when I hovered my mouse over VirtualBox and held the ALT key, it was sent to VirtualBox OS.

However, in Lubuntu (LXDE), when I hold the ALT key, it wants to switch between desktops and I can't use the ALT key inside VirtualBox.

How do I disable/unbind the ALT in LXDE, so it works in the VirtualBox window?

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted
+200

Unlike Gnome - the keybinding and mouse binding is controlled by a configuration file created when you first login - ~/.config/openbox/lubuntu-rc.xml

Open the file:

leafpad ~/.config/openbox/lubuntu-rc.xml

search for

<context name="Desktop">

Just below this are the statements highlighted:

enter image description here

Replace A-Up with A-S-Up and A-Down with A-S-Down

Alternatively just delete the lines below if you no longer want any ALT key mappings.

<mousebind>....</mousebind> 

You should be able to move between desktops with ALT+SHIFT and Clicking.

You will also note if you search for A-Up & A-Down there are various other similar mousebind XML tag situations where Alt and click are used - you could also think about changing these mappings to be consistent.

Save the file, logout and login to test the new key-mappings

share|improve this answer
add comment

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.