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 210483 - Escaping out of Search Panel reverts to previous Scroll Position
Summary: Escaping out of Search Panel reverts to previous Scroll Position
Status: RESOLVED DUPLICATE of bug 208312
Alias: None
Product: editor
Classification: Unclassified
Component: Search (show other bugs)
Version: 7.1.1
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-31 22:38 UTC by bht
Modified: 2012-04-02 09:53 UTC (History)
0 users

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 bht 2012-03-31 22:38:59 UTC
The new search panel is no longer a dialog and the scroll position in the file changes while typing in the search input field.

If a match is found while typing, the user is inclined to hit [Esc] to get out of the search input field into the search position after pressing enter or not.

Users accustomed to a search dialog will press [Enter] while others will press [Esc].

In NetBeans there is an irritating inconsistency as follows. This inconsistency is impossible to get used to because it presents the user with two different behaviours for the same action. How to reproduce:

1) go to top of file
2) search for a string that the editor needs to scroll down to to find
3) press [Esc]
4) move your cursor to locate the found string for typing

The cursor jumps back to the top of the file.

This is the first issue - one would expect that the cursor stays on the found string.

5) Search

The search panel shows again with the previous string pre-populated, but the editor does NOT scroll to the first occurrence as before

This is the second issue, and it is an inconsistency

6) Press [Enter]

The cursor is on the first occurrence. This is ok.

7) Press [Esc]

The cursor stays on the first occurrence.

I would suggest that the behavour is adapted to what we find in FireFox which means that only the jumping back to the top of the file on the first search after 4) needs to be removed.
Comment 1 Milutin Kristofic 2012-04-02 09:53:44 UTC

*** This bug has been marked as a duplicate of bug 208312 ***