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 205515 - Completion should ignore the Enter key (VK_ENTER) with modifiers
Summary: Completion should ignore the Enter key (VK_ENTER) with modifiers
Status: RESOLVED WONTFIX
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 7.0
Hardware: PC All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-24 10:48 UTC by emi
Modified: 2012-04-27 07:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Patch which fixes the issue (998 bytes, patch)
2011-11-24 10:50 UTC, emi
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description emi 2011-11-24 10:48:15 UTC
Pressing Ctrl+Enter will still insert the currently selection completion item and mask any possible external action.

The completion item should only respond to the Enter key without any modifiers.
Comment 1 emi 2011-11-24 10:50:24 UTC
Created attachment 113501 [details]
Patch which fixes the issue
Comment 2 Dusan Balek 2012-04-27 07:49:13 UTC
As designed behavior:
Enter -> completed text is inserted at caret position
Ctrl+Enter -> completed text overwrites identifier at caret position
Alt+Enter -> if completed text creates an expression, the expression is assigned to a new variable

Closing as WONTFIX.