Closed Bug 250177 Opened 20 years ago Closed 18 years ago

Filepicker needs accesskey for dirTextInputLabel

Categories

(SeaMonkey :: UI Design, defect)

defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Martijn.Ras, Assigned: MatsPalmgren_bugz)

Details

(Keywords: fixed-seamonkey1.1b)

Attachments

(2 files)

The filepicker is initialized using the values of textInput.label and
textInput.accesskey from filepicker.dtd:
<!ENTITY textInput.label        "File name:">
<!ENTITY textInput.accesskey        "n">

In case it is used to pick a directory instead of a file, the filepicker replace
s the value of textInput.label with the value of dirTextInputLabel from
filepicker.properties:
dirTextInputLabel=Directory name:

After translation this may mean that the accesskey becomes invalid when using
the filepicker to select a directory:
<!ENTITY textInput.label        "Bestandsnaam:">
<!ENTITY textInput.accesskey        "B">
dirTextInputLabel=Mapnaam:

I'd like to have an string added to the languagepack to be able to specify the
accesskey to be used with the dirTextInputLabel.

--- filepicker.original.properties      Wed Jul  7 15:24:47 2004
+++ filepicker.properties       Wed Jul  7 15:25:00 2004
@@ -17,0 +18 @@
+accesskeydirTextInputLabel=n

--- filepicker.original.js      Wed Jul  7 14:30:23 2004
+++ filepicker.js       Wed Jul  7 14:32:47 2004
@@ -90,0 +91 @@
+textInputLabel.setAttribute('accesskey',gFilePickerBundle.getString("accesskeydirTextInputLabel"));
Product: MailNews → Core
Severity: normal → minor
Component: MailNews: Attachments → XP Toolkit/Widgets: XUL
Attached patch Patch rev. 1Splinter Review
Attachment #231652 - Flags: superreview?(neil)
Attachment #231652 - Flags: review?(neil)
Comment on attachment 231652 [details] [diff] [review]
Patch rev. 1

>     textInputLabel.value = gFilePickerBundle.getString("dirTextInputLabel");
>+    textInputLabel.setAttribute('accesskey', gFilePickerBundle.getString("dirTextInputAccesskey"));
Nit: use the .accessKey property. r+sr=me with this fixed.
Attachment #231652 - Flags: superreview?(neil)
Attachment #231652 - Flags: superreview+
Attachment #231652 - Flags: review?(neil)
Attachment #231652 - Flags: review+
Assignee: sspitzer → mats.palmgren
Checked in to trunk at 2006-08-05 20:11 PDT.

-> FIXED
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Component: XP Toolkit/Widgets: XUL → XP Apps: GUI Features
Product: Core → Mozilla Application Suite
Attachment #232395 - Flags: approval-seamonkey1.1b?
Attachment #232395 - Flags: approval-seamonkey1.1b? → approval-seamonkey1.1b+
Mats, I checked in the XPFE part of the patch to the branch for SeaMonkey 1.1
Component: XP Apps: GUI Features → UI Design
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: