Closed Bug 76746 Opened 24 years ago Closed 24 years ago

Setting focus to textbox (edit field) doesn't work in dialogs

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

defect
Not set
major

Tracking

()

VERIFIED FIXED
mozilla0.9

People

(Reporter: cmanske, Assigned: hyatt)

References

Details

(Keywords: regression)

Attachments

(1 file)

Opening any property dialog such as Image or Link, where the initial value of the textbox is empty, we set initial focus by calling SetTextboxFocus(). Today, the caret doesn't appear and focus isn't in the appropriate textbox. If I change the JS for "SetTextboxFocus()" to simply call: textbox.select(); The current code for "SetTextboxFocus()" does this: if (textbox.value.length > 0) textbox.select(); textbox.focus(); so the '.focus()' is the problem.
probably not an editor bug, but I'll investigate.
Severity: normal → major
Status: NEW → ASSIGNED
Keywords: regression
Target Milestone: --- → mozilla0.9.1
Charley you beat me to it...I was gonna file this one... :-) Simon suggested filing this to Saari as an event handling bug..
Cc: saari and shir.
This isn't jsut composer dialogs. It happens in the Find dialog too, so that would make it a toolkit problem.
Summary: Setting focus to textbox (edit field) doesn't work in Composer property dialogs → Setting focus to textbox (edit field) doesn't work in dialogs
Saari: What new stuff went in? This is a regression from yesterday.
bryner had some related stuff.
god damn midair collisions! I'm really tired of it failing to either keep my previous form entries or at least allow me to "submit anyway" both are busted in 6.01. This should be fixed for 0.9
Target Milestone: mozilla0.9.1 → mozilla0.9
While certainly suspicious, removing Bryner's changes didn't seem to fix this. If we call ".select()" on the textbox, it is fine, ".focus()" is the problem.
I see lots of other focus-related checkins: DR? HYATT? Handing this over to XPFE.
Assignee: cmanske → trudelle
Status: ASSIGNED → NEW
Component: Editor → XP Miscellany
this is probably a focus regression care of hyatt. i'd have guessed bryner first, but see cmanske's comments.
OS: Windows NT → All
Hardware: PC → All
Mine.
Assignee: trudelle → hyatt
Status: NEW → ASSIGNED
ssari has done an r.
sr=waterson
a=asa@mozilla.org for checkin to 0.9
Fixed.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
*** Bug 76576 has been marked as a duplicate of this bug. ***
spam for you guys: bug 76576 and bug 76746 and new incidents related with focus in textfields. I have not reopenned this one because I don't know exaclty if those two are related with this bug.
sorry... please ignore my last two references to bugs.. this bug actually.. is the one in question. bug 76974
This problem is still evident under linux. (build 2001122721) I'm assuming that this problem would now be caused by a different bug or maybe a regression? Should I file a new bug? All the existing bugs tend to end up at this bug.
Vadim, is this still a problem for you? if so please REOPEN or file a new bug.
No. I haven't experienced this problem for a very long time.
verified. REOPEN if anyone still sees a problem.
Status: RESOLVED → VERIFIED
Component: XP Miscellany → Event Handling
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: