This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 380064 - Ctrl+Tab to next editor action stops working after restart
Summary: Ctrl+Tab to next editor action stops working after restart
Status: CLOSED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard: candidate43
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-19 15:49 EDT by Fabio Zadrozny CLA
Modified: 2013-10-24 11:49 EDT (History)
4 users (show)

See Also:


Attachments
org.eclipse.ui.workbench.prefs (1.39 KB, application/octet-stream)
2012-07-03 08:54 EDT, Fabio Zadrozny CLA
no flags Details
workbench.xmi (318.72 KB, application/octet-stream)
2012-07-03 08:54 EDT, Fabio Zadrozny CLA
no flags Details
Screenshot of keybinding preferences (49.51 KB, image/png)
2012-07-03 08:56 EDT, Fabio Zadrozny CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fabio Zadrozny CLA 2012-05-19 15:49:03 EDT
Build Identifier: Eclipse 4.2m7 Build id: I20120503-1800

I'm trying to set Ctrl+Tab to the next editor action, but Eclipse does not make the binding correct when Eclipse is restarted (it works in Eclipse 3.7 and does NOT work in Eclipse 4.2m7).

Reproducible: Always

Steps to Reproduce:
1. Go to the keybinding preferences page
2. Copy the next editor action
3. Bind Ctrl+Tab to it
4. Try to use Ctrl+Tab: works for next editor action
5. Restart Eclipse
6. Try to use Ctrl+Tab: instead of doing the next editor action it'll traverse the visible UI items.
Comment 1 Carolyn MacLeod CLA 2012-06-19 14:07:14 EDT
I would advise staying away from rebinding Ctrl+Tab to anything because in Eclipse, Ctrl+Tab is actually used for "tab traversal". In other words, typing either the "Tab" key or "Ctrl+Tab" will move focus to the next item in the "tab order". The reason that Ctrl+Tab was needed is to "tab out of" an editor, which consumes tab keys to allow typing TAB into the text. In addition, please note that "Shift+Tab" and "Ctrl+Shift+Tab" will traverse backwards.

To get to the next editor in the stack, you can type Ctrl+PageDown when you are in an editor stack (or Ctrl+PageUp to go backwards).

The "next editor" command is currently bound to Ctrl+F6 (hold ctrl down and keep typing F6 to go through the list of editors). Is the problem that you don't have F6 on you keyboard? Or maybe you need to hold an additional key down to type F6?

Another alternative is to try Ctrl+3 if you have not tried it already. This takes you to any view or editor just by typing Ctrl+3 and then typing the first few characters of the view or editor that you wish to go to.

Hope this helps.
Comment 2 Fabio Zadrozny CLA 2012-06-19 14:48:12 EDT
Well, I find that to change editors, Ctrl+Tab is the only sane choice... for me this is a really serious regression from 3.x

I do know the other alternatives but this is something I use so much that it's worth staying on 3.x for this reason alone...  (in fact, I was going to upgrade to 4.x for all my needs and decided against it because of this -- Ctrl+number is way too far away for something that common -- and Ctrl page up/down is for traversing left/right, not for getting to editors chronologically).

Also, take into account that most tabbed editor interfaces do use Ctrl+Tab for switching between tabs (notepad++, firefox, chrome, etc.), whereas Eclipse is the only one I know which has a strange default (Ctrl+F6), but it was fine until now because one could reassign to Ctrl+Tab...
Comment 3 Carolyn MacLeod CLA 2012-06-19 15:04:06 EDT
Wow, you could rebind Ctrl+Tab in 3.x - I would have guessed that it wasn't possible there either.

Paul and Eric, maybe he should be able to do this in 4.x too? I know that Ctrl+Tab does have different behavior in 4.x, but if it is bound to something else, maybe it should persist.

Fabio, please do try Ctrl+3 (just for fun). I really mean the number 3 exactly. Type Ctrl+3 and then type the first few characters of the name of the editor you want to go to. You can use arrow keys and Enter to select.
Comment 4 Paul Webster CLA 2012-06-19 15:20:49 EDT
(In reply to comment #3)
> Paul and Eric, maybe he should be able to do this in 4.x too? I know that
> Ctrl+Tab does have different behavior in 4.x, but if it is bound to something
> else, maybe it should persist.

He's successfully binding it, so the question is why is it not being saved on restart.

Fabio, after you bind it once and restart, could you please attach these 2 files:

.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi

.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.workbench.prefs

Thanx,
PW
Comment 5 Fabio Zadrozny CLA 2012-07-03 08:54:07 EDT
Created attachment 218213 [details]
org.eclipse.ui.workbench.prefs
Comment 6 Fabio Zadrozny CLA 2012-07-03 08:54:28 EDT
Created attachment 218214 [details]
workbench.xmi
Comment 7 Fabio Zadrozny CLA 2012-07-03 08:56:24 EDT
Created attachment 218215 [details]
Screenshot of keybinding preferences

Screenshot showing that after a restart, the command is still bound -- but it doesn't work.
Comment 8 Fabio Zadrozny CLA 2012-07-03 09:17:14 EDT
(In reply to comment #3)
> Wow, you could rebind Ctrl+Tab in 3.x - I would have guessed that it wasn't
> possible there either.
> 
> Paul and Eric, maybe he should be able to do this in 4.x too? I know that
> Ctrl+Tab does have different behavior in 4.x, but if it is bound to something
> else, maybe it should persist.
> 
> Fabio, please do try Ctrl+3 (just for fun). I really mean the number 3 exactly.
> Type Ctrl+3 and then type the first few characters of the name of the editor
> you want to go to. You can use arrow keys and Enter to select.

I'm aware of other ways to find the editor (Ctrl+E is what I usually use to find by the name -- Ctrl+3 would be another choice, but I don't really want any of those, I just want to go back to the editor I was before the current one, where Ctrl+Tab is the default for almost all applications with a tabbed-browsing experience, but it's bound to Ctrl+F6 in Eclipse).

Also, as Paul pointed, it does work, but upon a restart it stops working -- although I discovered that I can unbind it, press "OK" (apply does not work), then bind it back and press "OK" again and it works again -- it's very annoying doing this on every restart but it does work :)
Comment 9 Lasse Lindgård CLA 2012-10-12 08:02:17 EDT
(In reply to comment #2)
> Well, I find that to change editors, Ctrl+Tab is the only sane choice... for
> me this is a really serious regression from 3.x
> 

I opened this related bug report a long time ago: 272313
https://bugs.eclipse.org/bugs/show_bug.cgi?id=272313

I agree that ctrl+tab is the only sane choice for changing editors.
It is the de facto standard, and it has the usability feature that I can do it with one hand. For all other options it seems that I have to use two hands, which interrupts my workflow.

Btw. I also do this rebinding of keys, and I have never seen this error.
Have you tried downloading a new eclipse installation to see if you can reproduce the error?
Comment 10 Paul Webster CLA 2013-01-11 14:02:45 EST
Defered to 4.3
Comment 11 Fabio Zadrozny CLA 2013-10-10 20:17:54 EDT
Actually, I think this issue can be closed. I haven't been able to reproduce it anymore in the latest version.
Comment 12 Wojciech Sudol CLA 2013-10-11 04:37:01 EDT
Closed. Please reopen it if problem arise in the future.