Open Bug 130542 Opened 23 years ago Updated 2 years ago

XUL <textbox> has focus but not caret

Categories

(Core :: XUL, defect)

defect

Tracking

()

People

(Reporter: zakster_grant, Unassigned)

References

()

Details

From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.9) Gecko/20020311 BuildID: 2002031104 If I click the text box, enter some text, then select some of the text within the green border and hit some keys on the keyboard, more text is entered into the text box, even though it no longer has focus. On first visit to the page, the border of the text box is light - that is, non-focused. When you click it, it's border goes darker, and the caret flashes. When you select some text elsewhere (eg in the green border), the border of the text box stays dark, but the caret disappears. Surely, if the text box is supposed to keep focus even though you've selected elsewhere (not what I'd expect), the caret should stay there? Reproducible: Always Steps to Reproduce: 1. Click the text box, and enter some text 2. Highlight the words "This label has a green border" 3. Type a few letters on your keyboard - note the letters go into the text box Actual Results: The letters appear in the text box Expected Results: Nothing - some text had focus, and the text box didn't have a caret, so no text should have appeared.
Note the the textbox keeps the focus outline.... This is correct behavior in XUL, I believe (except for the bit with the caret). Over to the right component -- this has nothing to do with HTML form controls, resummarizing to focus on the caret issue.
Assignee: rods → hyatt
Status: UNCONFIRMED → NEW
Component: HTML Form Controls → XP Toolkit/Widgets: XUL
Ever confirmed: true
OS: Windows 2000 → All
QA Contact: madhur → shrir
Hardware: PC → All
Summary: Form element incorrectly gets focus → XUL <textbox> has focus but not caret
duplicate of bug 130418?
I've found that when this bug occurs, any oninput event handlers on the textbox are ignored. This makes the bug more serious, since it breaks being able to get input as it is entered.
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: shrir → xptoolkit.widgets
Assignee: hyatt → nobody
Severity: minor → S4
You need to log in before you can comment on or make changes to this bug.