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 203985 - Find Bar Default Action Key loses Focus
Summary: Find Bar Default Action Key loses Focus
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Search (show other bugs)
Version: 7.1
Hardware: PC Windows Vista
: P2 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-19 22:49 UTC by bht
Modified: 2011-10-26 14:26 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Testcase (403 bytes, application/octet-stream)
2011-10-19 22:49 UTC, bht
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bht 2011-10-19 22:49:32 UTC
Created attachment 112239 [details]
Testcase

I found this after running out of time trying to make a testcase for issue 203410.

It seems to confirm my subjective experience that the NetBeans find/replace does not really work under a realistic workload.

Please use the attached testcase as follows:

- In the find bar, check "Match Case"
- in the Find field, enter "test" without the quotes
- hit [Enter]
- In the find bar, uncheck "match Case"
- hit [Enter]
- hit [Esc]

On hitting [Enter] the 2nd time, the [Next] button has lost focus and the
[Enter] key does nothing.

In case there is discussion about the priority I would like to say that this is trivial to fix however it is difficult to accept in the state of maturity that NetBeans is in. Priority 2 or not as long as this is fixed in the next iteration e.g. RC1 please.
Comment 1 Milutin Kristofic 2011-10-25 09:44:01 UTC
Workaround: Alt+F returns focus to find field.

If I give shortcut enter to whole find panel, then when you open replace bar, it will have inconsistent behavior. 

Enter on Match Case, Whole Words, Regular Expression ... - Find Action
Enter on Replace Backwards Preserve case - Replace Action

If I override enter on find panel for replace, then it is confusing if you use only find when you have open replace bar. 

I consider status quo as best solution. Alt+F for find field, Alt+L for replace field. Enter/Shift Enter are working just on fields.

Can you describe better solution? But you need to consider replace bar because it is close connected to find bar
Comment 2 bht 2011-10-25 11:51:40 UTC
Thanks for the question. I am hesitating to describe a solution as it would put constraints on your implementation, except I would not want to use another shortcut key such as [Alt+F] as a workaround.

I am suggesting a solution that has the behavior similar to notepad++, available at http://notepad-plus-plus.org (just as an example - other editors might not be much different).
Comment 3 Milutin Kristofic 2011-10-25 13:55:29 UTC
Ok, checkboxes are not focusable. Fixed in http://hg.netbeans.org/jet-main/rev/5c5e7c6f47c4 

Btw: I read documentation for notebook++ http://npp-community.tuxfamily.org/documentation/notepad-user-manual/searching and I find that search and replace are in dialog what is different situation.
Comment 4 Quality Engineering 2011-10-26 14:26:42 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/5c5e7c6f47c4
User: Milutin Kristofic <mkristofic@netbeans.org>
Log: #203985 - Find Bar Default Action Key loses Focus