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 209578 - Find dialog problem with focus, ESC and Home keys
Summary: Find dialog problem with focus, ESC and Home keys
Status: RESOLVED WORKSFORME
Alias: None
Product: editor
Classification: Unclassified
Component: Search (show other bugs)
Version: 7.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords: FOCUS
Depends on:
Blocks:
 
Reported: 2012-03-14 14:46 UTC by mclaborn
Modified: 2012-03-27 13:19 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 mclaborn 2012-03-14 14:46:57 UTC
Product Version = NetBeans IDE 7.1 (Build 201112071828)
Operating System = Linux version 2.6.35-32-generic running on amd64
Java; VM; Vendor = 1.6.0_26
Runtime = Java HotSpot(TM) 64-Bit Server VM 20.1-b02

On an XML file that has just been opened in the editor
1. Ctrl+F to open find dialog at bottom of editor
2. Ctrl+V pastes in the text I want to find
3. The first instance of the text is located and highlighted
4. Press ESC to close the find dialog
5. Press Home key, expecting cursor to go to the beginning of the line with the first instance of matched text, instead cursor jumps to the top of the file
6. Ctrl+F to open find dialog again
7.  Text find is already there, so press Enter to find
8.  The first instance of the text is located and highlighted
9.  Press ESC to close the find dialog
10. Press Home key, this time cursor goes to the beginning of the line as I expect it to.

#10 was the previous behavior and is, I believe, correct.  It should at least be consistent every time.

PS - I reall don't like the new "embedded" find/replace dialog.  I was very familiar and productive with the old one.  This new one has slowed me down.
Comment 1 Milutin Kristofic 2012-03-27 13:19:47 UTC
1-5 you just use preview search (without searching by pressing enter or button). The caret didn't change position.

6-10 you finally press Enter, therefore you actually searched and so your caret gets new position.

I fix Bug #208312, after that it should be less confusing.