Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I recently switched from windows to ubuntu, and this is bothering me. I used to be able to expand packages by pressing the right arrow, but now I have to press enter to do it in ubuntu.

Is there any way to change that?
(I've never touched any configuration regarding this, that's why I assume it has to do with the operating system)

share|improve this question

migrated from Mar 15 '12 at 16:22

This question came from our site for professional programmers interested in conceptual questions about software development.

up vote 6 down vote accepted

From a similar question on stack overflow, I found out how to configure arrow keys to work on Eclipse's package explorer on Ubuntu. In short:

Put this into your ~/.gtkrc-2.0 and you should be good to go.

binding "gtk-binding-tree-view" {
    bind "Left"     { "expand-collapse-cursor-row" (0,0,0) }
    bind "Right"    { "expand-collapse-cursor-row" (0,1,0) }
class "GtkTreeView" binding "gtk-binding-tree-view"

Update: You may have to restart eclipse.

share|improve this answer

Your Answer


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.