Closed Bug 1696790 Opened 4 years ago Closed 4 years ago

Fix Cmd+Shift+Enter with focus on address input for "Send later" on Mac, and related nits/cleanup

Categories

(Thunderbird :: Message Compose Window, defect)

defect

Tracking

(thunderbird_esr78 wontfix, thunderbird88 wontfix)

RESOLVED FIXED
88 Branch
Tracking Status
thunderbird_esr78 --- wontfix
thunderbird88 --- wontfix

People

(Reporter: thomas8, Assigned: thomas8)

References

Details

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

Attachments

(1 file)

From my reading of the code (can't test Mac):

STR

  1. compose to foo@bar.com
  2. with focus in To or any autocomplete address input, press Cmd+Shift+Enter

Actual result

  • Afasics, this will trigger "Send now", because the special hack we have in place is not aware of event.shiftKey and will always do cmd_sendWithCheck (send now).

Expected result

  • should trigger "Send later" (cmd_sendLater) and move draft to Local folders / Outbox.
Severity: -- → S3
Summary: Fix Cmd+Shift+Enter with focus on address input for "Send later" on Mac → Fix Cmd+Shift+Enter with focus on address input for "Send later" on Mac, and related nits/cleanup

Bug 1696790 - Fix Cmd+Shift+Enter with focus on address input for "Send later" on Mac. r=aleca

  • Ensure Cmd+[Shift]+Enter to do cmd_sendWithCheck / cmd_sendLater respectively.
  • Prevent unrelated key combos with Shift or Alt from sending or moving focus.
  • Remove some unnecessary Mac tweaks involving event.stopPropagation().[*]
  • Rewrite with early returns.

*: Unless Mac has an inbuilt function to move focus on Cmd+[Shift]+Enter, which is unlikely, I don't see the need for event.stopPropagation(), because we won't get into focus-moving when metaKey is involved.

Attachment #9207298 - Flags: review?(alessandro)
Status: NEW → ASSIGNED
Comment on attachment 9207298 [details] [diff] [review] 1696790_fix-Cmd+Shift+Enter.diff Review of attachment 9207298 [details] [diff] [review]: ----------------------------------------------------------------- Looks good, thanks.
Attachment #9207298 - Flags: review?(alessandro) → review+

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/968f1d82c629
Fix Cmd+Shift+Enter with focus on address input for "Send later" on Mac. r=aleca

Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch
See Also: → 245989
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: