Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 208474 - [content assist][key bindings] Improved keys for iteration through completion suggestions
Summary: [content assist][key bindings] Improved keys for iteration through completion...
Status: RESOLVED DUPLICATE of bug 23008
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-01 16:22 EDT by André Søreng CLA
Modified: 2007-11-05 06:29 EST (History)
1 user (show)

See Also:


Attachments
Improved keys for iterating over completions (1.72 KB, patch)
2007-11-01 16:22 EDT, André Søreng CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description André Søreng CLA 2007-11-01 16:22:06 EDT
Created attachment 81882 [details]
Improved keys for iterating over completions

Pressing Ctrl+Space (or what is bound to show the Content Assist) pops
up a dialog with a list of completion suggestions. Sometimes, typing
more characters (possibly using camel humps) is not efficient when trying to
narrow down similar suggestions and you are basically forced to take the right
hand *off* the keyboard over to the arrow (or page) keys and navigate to the one you want.

It should be possible to iterate (up and down) through the suggestions without
taking your hands of the keyboard. My suggestion is using Tab/Shift+Tab for that
(but still preserving the option of using the arrow/page keys).
I've attached a patch for the org.eclipse.jface.text plugin that does that.

I think a lot of "lazy" people will appreciate having an alternative
to stretching over to the arrow keys. I know I would have gone crazy
without it.
Comment 1 Dani Megert CLA 2007-11-02 05:54:07 EDT
The correct solution is to offer a Up/Down commands to which people can bind whatever key binding they like. This is captured in bug 23008. Maybe you want to work such a general fix? The biggest challenge will be the layering problem: JFace Text is not a normal plug-in (just a bundle): like SWT it cannot declare or extend extension points.

*** This bug has been marked as a duplicate of bug 23008 ***
Comment 2 André Søreng CLA 2007-11-03 08:23:16 EDT
I guess this is not a JDT specific problem and needs to be fixed
globally. E.g. the configured up/down keys should work in any kind
of dialog/window. I'm thinking of perhaps just having some code that handles
the up/down commands and posts plain arrow up/down key events. I.e. some
form of remapping to the arrow keys.
Comment 3 Dani Megert CLA 2007-11-05 06:29:10 EST
I've moved the discussion to the open bug.