Closed Bug 60268 Opened 24 years ago Closed 23 years ago

Previous search text in find dialog should be selected when opened

Categories

(SeaMonkey :: UI Design, defect, P3)

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: adamlock, Assigned: law)

References

Details

Attachments

(2 files)

If you open the find dialog (e.g. ctrl+f) the search field contains the value 
used by the previous search. This value should be highlighted so that you can 
replace the old value just by starting to type. The current implementation does 
not select the field so that to replace the old value you must delete it first.

One line patch follows.
Severity: normal → minor
OS: Windows 2000 → All
Hardware: PC → All
simon/bill?
Assignee: ben → law
The patch looks good.  I need to test it out to make sure it works right in the
case where the find dialog is already open vs. when it isn't (fixing that might
take a bit more code).

BTW, there's a dup of this bug (Dave Hyatt opened it a little while ago).
Status: NEW → ASSIGNED
*** Bug 46927 has been marked as a duplicate of this bug. ***
found the earlier bug... marked it a dup of this, since this one has a patch
attached.
Keywords: patch
Bill, can you try your test case? I'm eager to checkin this bug if all looks well...
The only test I did was to try Ctrl-F to bring up the dialog.  Then, click on
the web page so focus goes away from the dialog.  Then, press Ctrl-F again.
This brings the dialog into focus but because it isn't opened anew, the search
field does not get the focus.

I've modified your patch so that the selection is set on the onfocus event.
This also has the "feature" that if you tab through the dialog contents, the
contents of the field are selected if you tab into that field from the buttons.

This seems better to me.  I don't see why there should be different behavior
when the dialog is already visible versus when it isn't.
*** Bug 60616 has been marked as a duplicate of this bug. ***
Any feedback on my alternative fix?
It is selected now.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
yep. vrfy fixed using branch comm bits on the 3 main platforms: 2001.06.07.0x.
Status: RESOLVED → VERIFIED
Product: Core → Mozilla Application Suite
Component: XP Apps: GUI Features → UI Design
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: