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 215260 - Opening search bar with Ctrl+F incorrectly initiates first search
Summary: Opening search bar with Ctrl+F incorrectly initiates first search
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Search (show other bugs)
Version: 7.2
Hardware: PC Windows 7 x64
: P3 normal with 1 vote (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-08 21:44 UTC by ebakke
Modified: 2012-07-12 08:18 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 ebakke 2012-07-08 21:44:36 UTC
In a previously completed bugfix [1], the behavior of editor's Ctrl+F search was brought closer to that of common web browsers. As of NetBeans IDE 7.2 RC1 (Build 201206272359), one detail is still inconsistent with the browsers, however. Here's how to reproduce it:

If the "Find" box in the search bar contains a search term, and the user presses escape to close the search bar, and then presses Ctrl+F to open it again, a search will actually be made immediately as Ctrl+F is pressed, possibly scrolling the editor viewport. In Chrome, Firefox, and Internet Explorer, pressing Ctrl+F will do nothing else than actually make the search bar visible; the user has to press enter to make an actual search.

User bht comments: "Perhaps you want to file a bug for this. The browser bahaviour you describe is probably more correct. To describe this one could say to execute a search, an event is required. With a new search, the event is the typing. The opening of a seach bar cannot be seen as an equivalent event."

Thanks again for your efforts!

Note: I have "Enter to find next" selected under Tools->Options->Editor->General->Search->Editor Search Behavior.

[1] http://netbeans.org/bugzilla/show_bug.cgi?id=208312
Comment 1 Milutin Kristofic 2012-07-10 12:02:38 UTC
http://hg.netbeans.org/jet-main/rev/493efb74173a

When integrated search will be performed only after enter, or any other change (changing checkboxes, text to find)
Comment 2 ebakke 2012-07-10 16:07:16 UTC
Wow, that was fast--thanks!!
Comment 3 Quality Engineering 2012-07-12 08:18:12 UTC
Integrated into 'main-golden', will be available in build *201207120002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/493efb74173a
User: Milutin Kristofic <mkristofic@netbeans.org>
Log: #215260 - Opening search bar with Ctrl+F incorrectly initiates first search