Bug 470532 - Unable to insert TAB characters when "Word Completion" is bound to the TAB key
Summary: Unable to insert TAB characters when "Word Completion" is bound to the TAB key
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.4.2   Edit
Hardware: PC Windows 8
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2015-06-18 21:06 EDT by Taro Kyo CLA
Modified: 2015-06-19 13:14 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Taro Kyo CLA 2015-06-18 21:06:34 EDT
Using Windows 8.1 x64, with Eclipse Luna downloaded straight from the Downloads page.

I am unable to insert TAB characters to indent a line of code when pressing the TAB key, while the TAB key is bound to "Word Completion" in the Preference ---> Keys.


Steps to Reproduce:

1. Have latest Eclipse Java IDE.
2. Windows -> Preferences -> General -> Keys.
3. Find "Word Completion" and bind it to TAB key, when "Editing Text".
4. Apply and exit the Preferences.
5. Create a new Java file.
6. In the text editor, press TAB.
7. A Windows warning/alert sound will play, instead of actually appending a TAB character.


Please let me know if there's anything I can do to assist.
Comment 1 Noopur Gupta CLA 2015-06-19 03:27:24 EDT
This is the expected behavior since the TAB key is now bound to word completion while editing. So pressing TAB in a text editor will look for completing a word instead of adding the TAB character.
Comment 2 Taro Kyo CLA 2015-06-19 10:58:38 EDT
(In reply to Noopur Gupta from comment #1)
> This is the expected behavior since the TAB key is now bound to word
> completion while editing. So pressing TAB in a text editor will look for
> completing a word instead of adding the TAB character.

Really? It was different a few versions ago...

Anyway, does this mean there's no way we could have TAB do Word Completion when only Content Assist is showing, and not do Word Completion and insert TAB characters when Content Assist is not showing?

It's like Visual Studio, where TAB alternates between Word Completion and inserting TAB characters when IntelliSense appears or not. We can no longer have this?
Comment 3 Dani Megert CLA 2015-06-19 11:13:55 EDT
(In reply to Taro Kyo from comment #2)
> (In reply to Noopur Gupta from comment #1)
> > This is the expected behavior since the TAB key is now bound to word
> > completion while editing. So pressing TAB in a text editor will look for
> > completing a word instead of adding the TAB character.
> 
> Really? It was different a few versions ago...

Please provide a link to the download where it seemed to work.
Comment 4 Taro Kyo CLA 2015-06-19 12:09:06 EDT
(In reply to Dani Megert from comment #3)
> (In reply to Taro Kyo from comment #2)
> > (In reply to Noopur Gupta from comment #1)
> > > This is the expected behavior since the TAB key is now bound to word
> > > completion while editing. So pressing TAB in a text editor will look for
> > > completing a word instead of adding the TAB character.
> > 
> > Really? It was different a few versions ago...
> 
> Please provide a link to the download where it seemed to work.

Will report back once I download a few 155MB of similar IDEs... Oh boy.

Anyway, I just need confirmation. Is it true that "Word Completion" was never supposed to activate only when Content Assist is active?
Comment 5 Dani Megert CLA 2015-06-19 12:20:13 EDT
(In reply to Taro Kyo from comment #4)
> Anyway, I just need confirmation. Is it true that "Word Completion" was
> never supposed to activate only when Content Assist is active?

Word completion is part of content assist, so, yes.
Comment 6 Taro Kyo CLA 2015-06-19 12:41:32 EDT
(In reply to Dani Megert from comment #5)
> (In reply to Taro Kyo from comment #4)
> > Anyway, I just need confirmation. Is it true that "Word Completion" was
> > never supposed to activate only when Content Assist is active?
> 
> Word completion is part of content assist, so, yes.

Say I bind TAB to Word Completion. So, this means that Content Assist is not active, therefore I am calling on Word Completion every time I press TAB.

Since you said yes, then what is Word Completion used for when Content Assist isn't active? What does the name, "Word Completion" mean? When it said Word Completion, I would figure it means it will auto-complete the entry suggested by Content Assist. They way it sounds right now, it's like that, but it isn't... 

I felt it needs a description, placed somewhere where I can see. 

I'm right now downloading the IDE, yet sitting in front of the computer, not know what the name means to me.
Comment 7 Taro Kyo CLA 2015-06-19 13:14:35 EDT
Update:

Okay, I figured it out now. It's more of my configurations messed up. Comparing mine's default configuration with the new IDE's *default* default configuration, I realized there were changes made over the last few years.

Problem solved. I appreciated your time.