Closed Bug 96843 Opened 23 years ago Closed 23 years ago

'Find in this page' textfield doesn't get focus by default

Categories

(SeaMonkey :: UI Design, defect, P1)

defect

Tracking

(Not tracked)

VERIFIED FIXED
mozilla0.9.6

People

(Reporter: tingley, Assigned: bugzilla)

References

()

Details

(Keywords: access, regression, Whiteboard: PDT+, r=kin, sr=alecf, ready for checkin, [correctness])

Attachments

(2 files)

Build ID 2001082406 Linux

When opening 'Find in this page' with CTRL-F, the dialog textfield isn't given
focus by default -- if I start typing immediately (to enter a search term), the
keystrokes don't go anywhere (well, at least they don't go to the dialog...) 
Instead, I must click in the textfield before I can type.

This is a recent regression -- builds as recent as 20010822 would give the
dialog focus so that a search term could be entered immediately.
Keywords: regression
Reproduce on MacOS should be All/All

Very annoying bug.
i see this on os x, 2001.08.28.05-comm.

simon/kin, who'd be working this?
OS: Linux → All
Hardware: PC → All
*** Bug 98145 has been marked as a duplicate of this bug. ***
James Kelley (oneiros@darkspire.net, sorry, I misspelled his name above) had
attached a patch to the dup.

cc'ing him and adding keywords.
Keywords: patch, review
The patch from James Kelly (attachment #48144 [details] [diff] [review]) fixes the focus problem for me.
This is on Linux, Build ID 2001090400.
BTW:
Since the patch is almost trivial, is there any chance this will be fixed
in time for 0.9.4 (or is it too late already)?

As Benjamin said... "Very annoying bug".
nominating.
Keywords: mozilla0.9.4
*** Bug 99040 has been marked as a duplicate of this bug. ***
this is a regression [since 6.1rtm], so nominating for nsbranch/moz0.9.4.
Keywords: nsbranch
Let's fix this.  Marking nsbranch+ and PDT+.
Keywords: nsbranchnsbranch+
Whiteboard: PDT+
Can't even get to the field with tab. This is extremly bad for usability. Adding
access kw. This should be a 094 stoper.
Keywords: access
cc'ing alecf and sfraser, who appear to have worked on this code.

This bug is PDT+, nsbranch+, nominated for 0.9.4, and has had a patch from James
Kelley attached for over a week.  Can anyone take a look at it?  Thanks.
please attach a patch with diff -u - there's no context here.
Attached patch unified diffSplinter Review
Comment on attachment 49101 [details] [diff] [review]
unified diff

sr=alecf
Attachment #49101 - Flags: superreview+
Comment on attachment 49101 [details] [diff] [review]
unified diff

r=kin@netscape.com
Attachment #49101 - Flags: review+
James, do you have cvs commit access?

If not, one of your reviewers can check this in for you.

Nopes.  I don't have commit access.  If someone could check this in for me it
would be much appreciated.
Umm... you know what's weird?  The fact that I can't see this problem on
2001091208 trunk linux or on the latest branch build.

Am I imagining this, or whatever underlying cause broke this originally get
fix/backed out?
I don't have a current build at the moment to verify tingley's comment.

Bug #58853 is closely related ("Dialog boxes should always get initial keyboard
focus"), by nothing has been checked in there as far as I can see.
This also works for me on build 2001091303 on Win2k.
WFM 9/13 linux. Where is tab sending focus one tab after [Cancel] though? It
disapears before it goes back to the text.
No, I take it back, this is NOT fixed. The first find works fine. The second,
when there is already stuff in the Find text: [             ] box, it DOES NOT
get focus.
Ahh, you're right.  Thanks Jeremy...

This is ready for checkin.  kin/alecf, if you get a sec?
Whiteboard: PDT+ → PDT+, r=kin, sr=alecf, ready for checkin
Jeremy M. Dolan wrote:
> The first find works fine. The second, when there is already stuff in the
> Find text: [             ] box, it DOES NOT get focus.

See also my original description in bug #98145, which was marked duplicate
of this bug. It occurs only with text already present in the entry field.
Jeremy M. Dolan wrote:
> Where is tab sending focus one tab after [Cancel] though? It disapears
> before it goes back to the text.

That is bug #64052.

Although it was filed for the Prefs dialog, it applies to all dialogs in
Mozilla (Find in Page, Open Web Location, Open File, File Bookmark etc.).
Peter/Alec/Kin - Can you take owenership of this patch and get this one in?
cc pchen. Paul, could you please help Blake get this on the branch?
Priority: -- → P1
Target Milestone: --- → mozilla0.9.5
This seems like such a hack. Why isn't the toolkit focussing the text field by 
default?
Simon Fraser wrote:
> This seems like such a hack. Why isn't the toolkit focussing the text field
> by default?

That would clearly be the correct solution. This is covered by:

 - bug #58853 "Dialog boxes should always get initial keyboard focus",
              which is marked P3/mozilla1.1 (enhancement)
 - bug #35087 "dialog with one text field should set focus",
              which is marked P3/mozilla1.0 (normal)
From reading the comments in those bugs I don't get the impression that
this issue is likely to be fixed anytime soon. Hence this "hack".

Maybe voting for 58853/35087 would help?
Adding correctness Status Whiteboard, correct/expected behavior does not occur.
Whiteboard: PDT+, r=kin, sr=alecf, ready for checkin → PDT+, r=kin, sr=alecf, ready for checkin, [correctness]
If 58853/35087 aren't going to be fixed for PDT/0.9.5, what is this workaround
checkin waiting on? This bug locks up all of Nav every time I hit ctrl-f... no
way out... can't tab to cancel and ESC does nothing.

s/sr are over two weeks old
Checked in to trunk and branch.
Does anyone else find it bothering that textfield.select() doesn't focus the
textfield at the same time?
->0.9.6
Target Milestone: mozilla0.9.5 → mozilla0.9.6
Q: Does the target change to 0.9.6 mean that the workaround for this bug will
not be present in 0.9.5?
No, the fix should be in 0.9.5 since it was checked into the trunk on 9/30.  It
looks like Asa was doing a mass-retarget of open bugs.

I'm not sure why this bug is still open, actually.  There may be an underlying
bug that caused the problem initially, but this may not be the right place to
address it.  
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
vrfy fixed using 2001.10.08.0x-0.9.4 [branch] comm bits on linux, winnt and mac
10.1.
Keywords: vtrunk
vrfy fixed using linux trunk and 095 branch
i'm gonna vrfy this one [tested on mac 10.1 and winnt with 2001.10.08.xx-trunk
comm bits].

*however* i sometimes notice that [on the trunk, not with 0.9.4 branch so far]
Find in Page doesn't focus the textfield --a recent bug was filed on this, bug
103484, which i will reopen to cover this intermittent issue... eg, today i saw
it on Mac 10.1 with a one profile, but not another [both existing, non-migrated
ones].
Status: RESOLVED → VERIFIED
Keywords: vtrunk
*** Bug 110715 has been marked as a duplicate of this bug. ***
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: