Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

2 Answers 2

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

I very seriously doubt it has anything to do with the operating system. As a matter of fact, I am 99% certain of it. And you really should have taken a look at the configuration before posting a question here.

What you are witnessing is probably some difference in the default key settings between releases of Eclipse on different operating systems, and/or between different versions of Eclipse. (Quite often, when you switch OS, you switch Eclipse version, too.)

It might be worth trying to export your settings from eclipse on windows, moving the exported settings file to ubuntu, and importing it into eclipse there. If that does not work, then you will need to fix the settings by hand.

You can configure just about any action in Eclipse to be triggered by just about any key combination.

share|improve this answer

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.