Closed Bug 1692265 Opened 4 years ago Closed 2 years ago

Edit-pill text input surprisingly remembers previous selection for next edit

Categories

(Thunderbird :: Message Compose Window, defect)

defect

Tracking

(thunderbird_esr102 affected)

RESOLVED FIXED
111 Branch
Tracking Status
thunderbird_esr102 --- affected

People

(Reporter: thomas8, Assigned: thomas8)

References

Details

(Keywords: ux-consistency)

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #1692191 +++

STR

  1. Edit pill John Doe <foo@bar.com>, and select "Doe"
  2. Press ESC to get out of edit mode
  3. Edit pill again

Actual result:

  • "Doe" is still selected from previous edit: that's weird and mostly not helpful.
  • Especially for keyboard access (especially for the blind), no stable cursor position/selection after starting to edit.

Expected result:

  • Don't remember selection from previous edit.
  • For edit access via keyboard: stable cursor position at the end of the address
  • Same for edit access via mouse, or, for bonus points: place text cursor where the mouse click occured, to make the address text more directly accessible*

*Implementation hint for mouse cursor positioning:
Perhaps we can remember the mouse click coordinates from the click which triggered pill edit, and feed that into a new click event, which we dispatch on the input text after it is available for editing, to get the cursor into mouse position.

We want to avoid that the selection of the previous pill edit sticks around when
the pill is being edited again.

Assignee: nobody → bugzilla2007
Status: NEW → ASSIGNED
Target Milestone: --- → 111 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/8301a5779050
After editing pill, collapse selection of emailInput to prevent sticky selection. r=aleca

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: