This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 204036 - All Items completion list unavailable when space is a completion selector
Summary: All Items completion list unavailable when space is a completion selector
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: -S1S-
Hardware: PC Other
: P2 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-20 19:15 UTC by 280Z28
Modified: 2011-10-24 14:08 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description 280Z28 2011-10-20 19:15:13 UTC
When a space character is added to Options->Editor->Code Completion->Java->Completion Selectors for Java, the All Items completion list is not available.

Pressing Ctrl+Space brings up the standard completion list. Pressing Ctrl+Space again should bring up the All Items completion list. However, in org.netbeans.modules.editor.java.JavaCompletionItem.processKeyEvent, the initial condition does not check the state of modifiers before checking a typed character is a completion selector.

Fix: In place of the following condition:

&& Utilities.getJavaCompletionSelectors().indexOf(evt.getKeyChar()) >= 0

Use this:

&& !evt.isAltDown() && !evt.isControlDown() && !evt.isMetaDown() && !evt.isAltGraphDown()
&& Utilities.getJavaCompletionSelectors().indexOf(evt.getKeyChar()) >= 0

(Assigned high priority since the fix is so simple and straightforward)
Comment 1 Dusan Balek 2011-10-21 08:35:49 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/c0df68f792b6
Comment 2 Quality Engineering 2011-10-24 14:08:38 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/c0df68f792b6
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #204036: All Items completion list unavailable when space is a completion selector - fixed.