Closed Bug 1696692 Opened 4 years ago Closed 4 years ago

Improve Ctrl+A/Cmd+A pill selection code and behaviour

Categories

(Thunderbird :: Message Compose Window, enhancement)

enhancement

Tracking

(thunderbird_esr78 wontfix)

RESOLVED FIXED
88 Branch
Tracking Status
thunderbird_esr78 --- wontfix

People

(Reporter: thomas8, Assigned: thomas8)

References

Details

(Keywords: ux-efficiency, ux-error-prevention)

Attachments

(1 file)

Let's improve code and behaviour of Ctrl/Cmd+A to select pills in composition.

  • We should use early return/break wherever possible, for clarity and less indent.
  • We should not trigger pill selection for Control+A on MAC, because that's an OS shortcut for other stuff.
  • We should not trigger pill selection for Ctrl+Alt+A on Windows/Linux (even though that custom OS-level shortcut for starting an app of your choice will override us).
  • Ctrl/Cmd+A on an empty address row should helpfully select all pills of all other rows instead of doing nothing. Common scenario e.g. when you have auto-CC/BCC, start with empty To, but don't want the auto-CC this time. Having to focus CC first is needlessly clumsy with an extra step. There's no reason to press Ctrl/Cmd+A on an empty row unless you actually intend to select something, and the only thing around is those other pills.

This implements the improvements listed in comment 0.

Attachment #9207189 - Flags: review?(alessandro)
Status: NEW → ASSIGNED
Comment on attachment 9207189 [details] [diff] [review] 1696692_pills-ctrl+a.diff Review of attachment 9207189 [details] [diff] [review]: ----------------------------------------------------------------- Looks good, thanks.
Attachment #9207189 - Flags: review?(alessandro) → review+
Target Milestone: --- → 88 Branch

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/0870a62e5554
Improve Ctrl+A/Cmd+A pill selection code and behaviour. r=aleca

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Pushed by mkmelin@iki.fi: https://hg.mozilla.org/comm-central/rev/8154af68f1e1 followup - fix linting. rs=eslint DONTBUILD
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: