Closed Bug 135616 Opened 23 years ago Closed 22 years ago

Text cursor is placed incorrectly when changing focus from one input field to another input field using JavaScript

Categories

(Core :: Layout: Form Controls, defect)

x86
All
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 147927

People

(Reporter: jln, Assigned: kinmoz)

Details

Attachments

(1 file)

The situation is as follows: - Text input field A is the currently selected input field. - User clicks on text input field B which has an "onFocus" handler. - B's onFocus() handler moves focus back to A using "A.focus()". A short time passes thereafter and then the text cursor is blinking in B's input. BUT text insertion is done in A! See attachment for a simple example.
Attached file Example showing the problem. (deleted) —
this is certainly bad ... confirming linux trunk 2002040422 (and 0.9.9) os -> all
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows 2000 → All
Summary: Text cursor is placed incorrectly when changing focus from one input field to another input field using JavaScript → Text cursor is placed incorrectly when changing focus from one input field to another input field using JavaScript
-->
Assignee: rods → kin
QA Contact: madhur → tpreston
we have duplicate bug 147927 it has some more testcases and descriptions.
Blocks: focusblink
*** This bug has been marked as a duplicate of 147927 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Acting on Duplicate resolution from bug 135616 comment 5: *Moving 'Blocks: bug 64451' from bug 135616 to bug 147927. (Take further action as needed.)
No longer blocks: focusblink
Addition to comment 6: That was a simple remove from here: the other bug already had the 'Blocks:' set.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: