Closed Bug 1721392 Opened 4 years ago Closed 4 years ago

Regression: Ctrl-Z no-op in Cc field

Categories

(Thunderbird :: Message Compose Window, defect)

defect

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: valentin, Unassigned)

Details

As a follow-up to bug 1721389, I extensively tested what
Ctrl-Z does in the Compose Window’s various input fields.

Open a new message with Ctrl-N; instead of remaining in
the To field, hit <Shift>Tab three times then Return to
enable (and bring the focus to) the Cc field.

Type in an address and hit either Return or the comma
key to turn it into an address pill. Hit Ctrl-A to select it,
then delete all of it with either Backspace or Delete.

Now hit Ctrl-Z: that’s right, nothing happens.

If you try with either Bcc or To, Ctrl-Z will at least do
something (slightly erratic, but still better than nothing).
In the Cc field, it’s a no-op.

Reproduced with build 20210720102621 (92.0a1). It appears
to have been introduced fairly recently because I don’t remember
seeing it happen with e.g. 87.0.

Hi Valentine, not sure what went wrong on your side, but it's technically impossible that there could be a difference in behaviour between To and Cc fields, as they are exactly the same by design, except that the To field cannot be removed in a mail message.

This works for me:

  • Compose
  • No need to stress yourself with Shift+Tab any more, just press Ctrl+Shift+C to show and focus Cc address row (Let us know if you like it! Implemented in bug 1667692).
  • type foo@bar.com into Cc, then press Enter
  • Ctrl+A to select the only pill
  • Delete or Backspace to delete selected pill
  • Ctrl+Z

Actual result:

  • foo@bar.com gets restored as text (not as a pill), just as in To field.
  • Please note: Unfortunately, there is no undo or redo for pills at all. The only thing which ever gets undone is any typing or editing which occurred in the address input field, which is a text input with inbuilt undo and redo. I know that maybe the difference in a screen reader might be subtle (or none?), but this is fundamental to understanding the current "random" behaviour.
Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → WORKSFORME
Resolution: WORKSFORME → INVALID

Huh. I’m redoing the exact same steps, and yet I’m still getting the
same result: Ctrl-Z doesn’t bring anything back (no text, let alone a pill).

And again, this only happens in Cc, not To nor Bcc. How weird is that??

Also reproduced with an earlier Daily build (20210614103036). If I get enough
time, I can try and manually bisect when precisely it started to appear.

(BTW: Kudos for the new keyboard accelerators! At first I was confused with
Ctrl-Shift-C being used for the Calendar and so on, but after reading the
rationale behind it I’m fairly convinced it was indeed the way to go.)

I second Thomas' reply, I don't see this in any field, be it Cc, To or other. Undo is kind of confusing with regard to the pills, but it works at the entry level if you consider adding a pill is removing the text from the entry and is otherwise untied to the entry.
I.e. when hitting Ctrl+Z, I get the text I had before transforming it into a pill.

You need to log in before you can comment on or make changes to this bug.