Closed Bug 1038323 Opened 6 years ago Closed 6 years ago

Clear Recent History menuitem doesn't have a keyboard shortcut


(Thunderbird :: Mail Window Front End, defect, minor)

Not set


(thunderbird34 fixed)

Thunderbird 34.0
Tracking Status
thunderbird34 --- fixed


(Reporter:, Assigned:


(Blocks 2 open bugs)



(1 file, 1 obsolete file)

That's Ctrl+Shift+Del in both Firefox and SeaMonkey."key_sanitize"&find=browser/

Thanks to Bozz for reporting this.
Attached patch Proposed fix (obsolete) — Splinter Review
This adds the keyboard shortcut Ctrl+Shift+Del for Windows and Linux as desired. I'm not sure about Mac, which has Ctrl+Shift+Back instead. The respective code is copied from bug 342743 attachment 239977 [details] [diff] [review] and seems to work this way in Firefox (apparently just adding "_mac" does the trick?), but I don't have a Mac myself and thus can't test it.

While there, I've wrapped some overly long lines in the vicinity as well.

Does this need ui-review too or is it simple enough for a single review?
Assignee: nobody →
Attachment #8455710 - Flags: review?(mkmelin+mozilla)
Ok, now I get it. Removing the #ifdef XP_MACOSX clause makes Ctrl+Shift+Back work on Windows as well. That id attribute is only of interest to show the shortcut in the menu using the "key" attribute.

Thus, on a Mac, either Ctrl+Shift+Del or Ctrl+Shift+Back can be used to open the sanitize dialog, but only Ctrl+Shift+Del is presented as a keyboard shortcut in the menus.
Comment on attachment 8455710 [details] [diff] [review]
Proposed fix

Review of attachment 8455710 [details] [diff] [review]:

LGTM! r=mkmelin
I don't think this needs special ui-r, especially given it's just copying firefox behavior

::: mail/base/content/mailWindowOverlay.xul
@@ +510,5 @@
>    <!-- Tools Keys -->
> +  <key id="key_searchMail"
> +       key="&searchMailCmd.key;"
> +       oncommand="goDoCommand('cmd_search')"
> +       modifiers="accel, shift"/>

while touching, please remove the space between comma and shift
Attachment #8455710 - Flags: review?(mkmelin+mozilla) → review+
Done, push for comm-central please.
Attachment #8455710 - Attachment is obsolete: true
Attachment #8459161 - Flags: review+
Keywords: checkin-needed
Closed: 6 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 34.0
Blocks: 1043178
You need to log in before you can comment on or make changes to this bug.