Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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 programmers.stackexchange.com Mar 15 '12 at 16:22

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

up vote 7 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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .