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 91004 - Pressing return while editing does all sorts of annoying things
Summary: Pressing return while editing does all sorts of annoying things
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: Macintosh All
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-13 09:23 UTC by hobel
Modified: 2006-12-18 15:48 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hobel 2006-12-13 09:23:37 UTC
I don't know if it's the "if" statement, or the function call in it, but when I
type:
if (bla.equals("bla") and then push the cursor after the closing right paren
(there's a second one that closes off the "if"-condition) via a keyboard key (on
the Mac, cmd-right), press "return", the cursor doesn't move to the new line,
but moves INTO the if condition, right after the right ("bla") parenthesis. 
Incredibly annoying.  Please think about this "feature".

The second thing is inside a for-i loop.  When I type "fori" and have it expand
to a loop, put the cursor after the { at the end of the line and press enter, it
won't let me do ANYTHING.  Instead the cursor is "beamed" somewhere else.  Also
quite annoying.  (Besides, I always delete that useless first line in the "fori"
loop anyway; if I wanted a straight iteration loop, I'd use the "for : " loop.)

Be careful with moving the cursor around.  It's like X window moving the mouse
cursor around.  Old window managers used to do it, and it was annoying.

Sorry for ranting.  The new editor in 6.0M5 is *great*, but it has its annoying
sides that I'd like to go away in the future (I'm hoping they aren't intended
features).
Comment 1 Jan Lahoda 2006-12-18 13:59:06 UTC
Code templates?
Comment 2 hobel 2006-12-18 15:04:00 UTC
What's your question?

Yes, it has to do with templates, I guess (I'm only a user, not developer).  But
certainly the return key should still work normally, as soon as the template is
expanded (i.e. after you typed "fori " etc.), not make the cursor do funky jumps
to some fixed place where it is rather useless for the user.
Comment 3 Jan Lahoda 2006-12-18 15:48:16 UTC
Sorry, the comment was not meant as a question for you, but as a comment for
dbalek to know why I am reassigning the issue to him.