Closed Bug 1629144 Opened 5 years ago Closed 5 years ago

Ctrl+Enter / Ctrl+Shift+Enter keyboard shortcuts for sending message no longer work from recipient input

Categories

(Thunderbird :: Message Compose Window, defect)

defect

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 77.0

People

(Reporter: thomas8, Assigned: thomas8)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file, 1 obsolete file)

Ctrl+[Shift]+Enter no longer works when focus is in recipient input.

Attached patch ctrlEnterRecipientInput.diff (obsolete) — Splinter Review

Simple fix.

Assignee: nobody → bugzilla2007
Status: NEW → ASSIGNED
Attachment #9139846 - Flags: review?(alessandro)

I removed event.stopPropagation(); event.preventDefault(); because they don't seem to do anything (on Windows at least). Alex might know more.

Comment on attachment 9139846 [details] [diff] [review] ctrlEnterRecipientInput.diff Review of attachment 9139846 [details] [diff] [review]: ----------------------------------------------------------------- Looks good, thanks for fixing this. The preventDefault was initially implemented to avoid triggering the send message when pressing enter. Listening for the Control key modifier is a better approach. Can you please update the commit message with: "Bug 1629144 - Restore Ctrl+Enter/Ctrl+Shift+Enter behaviour when an addressing row is focused. r=aleca"
Attachment #9139846 - Flags: review?(alessandro) → review+

(In reply to Alessandro Castellani (:aleca) from comment #3)

Review of attachment 9139846 [details] [diff] [review]:
Looks good, thanks for fixing this.

I'm here to help, thanks for the review.

Can you please update the commit message with:
"Bug 1629144 - Restore Ctrl+Enter/Ctrl+Shift+Enter behaviour when an
addressing row is focused. r=aleca"

Done.

Alex, pls set tb-checkin-needed as appropriate. Does this need a try-run? Would you want to add a test?

Attachment #9139846 - Attachment is obsolete: true
Attachment #9139908 - Flags: review+
Blocks: 1629364
Target Milestone: --- → Thunderbird 77.0

Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/5d4c12618d3f
Restore Ctrl+Enter/Ctrl+Shift+Enter behaviour when an addressing row is focused. r=aleca

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED

This caused a regression which moves the cursors to the next input field when a pill is created

(In reply to Alessandro Castellani (:aleca) from comment #7)

This caused a regression which moves the cursors to the next input field when a pill is created

Upon further investigation, the regression wasn't cause by this bug but rather by the changes done in the toolkit autocomplete in bug 1627520.
I'll see if I can fix it.

Severity: minor → S3
Component: Composition → Message Compose Window
Product: MailNews Core → Thunderbird
Blocks: 1663583

We improved this in bug 1663583 to also allow Cmd+Enter for sending the message.

No longer blocks: 1663583
See Also: → 1663583
See Also: → 1682147

Hi,

After a quick check, it seems the bug is fixed here, i.e. ctrl-enter now works from the To and Subject fields.

Thanks!

Best regards

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

Attachment

General

Created:
Updated:
Size: