Closed Bug 1277023 Opened 8 years ago Closed 8 years ago

Delete key has no function in alias window

Categories

(MailNews Core :: Account Manager, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Thunderbird 51.0

People

(Reporter: bugzilla.mozilla.org-6h11, Assigned: aceman)

Details

Attachments

(1 file)

In the alias list in account preferences, it should be possible to trigger the delete action using the [Delete] key on the keyboard.
Component: Mail Window Front End → Account Manager
Attached patch patchSplinter Review
Yes, this is doable.
The patch adds Delete for deletion, Insert for "add...".
Assignee: nobody → acelists
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #8776286 - Flags: review?(mkmelin+mozilla)
Comment on attachment 8776286 [details] [diff] [review]
patch

Review of attachment 8776286 [details] [diff] [review]:
-----------------------------------------------------------------

::: mailnews/base/prefs/content/am-identities-list.js
@@ +126,5 @@
>  
> +  gEditButton.setAttribute("disabled", "false");
> +  gDeleteButton.setAttribute("disabled", (gIdentityListBox.itemCount <= 1) ? "true" : "false");
> +  gSetDefaultButton.setAttribute("disabled", (gIdentityListBox.selectedIndex == 0) ? "true" : "false");
> +  // The Add command is always be enabled.

Why all the changes to use setAttribute("disabled") instead of .disabled?
It seems to me there is no "disabled" property on a <command>, only an attribute.
Comment on attachment 8776286 [details] [diff] [review]
patch

Review of attachment 8776286 [details] [diff] [review]:
-----------------------------------------------------------------

LGTM! r=mkmelin
Attachment #8776286 - Flags: review?(mkmelin+mozilla) → review+
https://hg.mozilla.org/comm-central/rev/c482d8a2cd6178a9e5990c07b6c7c09dc63d919d
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
OS: Windows 7 → All
Product: Thunderbird → MailNews Core
Hardware: x86 → All
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 51.0
Version: 45 Branch → Trunk
English derailed here:
https://hg.mozilla.org/comm-central/rev/c482d8a2cd6178a9e5990c07b6c7c09dc63d919d#l1.52
"The Add command is always be enabled."
Right ;-)
Fixed that:
https://hg.mozilla.org/comm-central/rev/44003aa9b4de
I needed something to push since the previous push went in with DONTBUILD for no apparent reason.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: