Closed
Bug 834905
Opened 13 years ago
Closed 13 years ago
Add Alt+D shortcut to focus the location bar in Metro.
Categories
(Firefox for Metro Graveyard :: Browser, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mbrubeck, Assigned: mbrubeck)
References
Details
(Keywords: access, platform-parity, Whiteboard: [completed-elm])
Attachments
(1 file, 1 obsolete file)
|
2.35 KB,
patch
|
fryn
:
review+
|
Details | Diff | Splinter Review |
Now that bug 790486 is fixed, we can add Alt-D as an alias for Control-L, to match desktop Firefox.
Attachment #706599 -
Flags: review?(fyan)
Comment 1•13 years ago
|
||
Comment on attachment 706599 [details] [diff] [review]
patch
Review of attachment 706599 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/metro/base/content/browser.xul
@@ +128,5 @@
> <key id="key_reload2" key="r" modifiers="accel" command="cmd_reload"/>
> <key id="key_forceReload" keycode="VK_F5" modifiers="shift" command="cmd_forceReload"/>
> <key id="key_forceReload2" key="r" modifiers="accel,shift" command="cmd_forceReload"/>
> <key id="key_focusURL" key="l" modifiers="accel" command="cmd_openLocation"/>
> + <key id="key_focusURL2" key="d" modifiers="alt" command="cmd_openLocation"/>
In Firefox desktop, this key value varies by locale (perhaps since it's an accesskey?).
https://mxr.mozilla.org/mozilla-central/source/browser/base/content/browser-sets.inc#226
https://mxr.mozilla.org/l10n-central/search?string=urlbar.accesskey
In Firefox desktop, the key value for accel+l is also defined in a DTD, but it seems to be "l" for all locales as expected.
https://mxr.mozilla.org/l10n-central/search?string=openCmd.commandkey
What's our localization plan for Metro? I don't think it's very useful to put values that we want to be the same for all locales (e.g. "l" in accel+l) in DTDs, but if we want the "d" in alt+d to vary by locale (as accesskeys generally do), then we'll need that, though I wouldn't have it block a v1.
| Assignee | ||
Comment 2•13 years ago
|
||
Good catch. Since I'm mainly adding this for consistency with desktop Firefox, it seems important to go for consistency in all locales.
(But I won't bother adding an entity for control-L, since that one is not localized in practice.)
Attachment #706599 -
Attachment is obsolete: true
Attachment #706599 -
Flags: review?(fyan)
Attachment #707272 -
Flags: review?(fyan)
Comment 3•13 years ago
|
||
Comment on attachment 707272 [details] [diff] [review]
patch
Review of attachment 707272 [details] [diff] [review]:
-----------------------------------------------------------------
(In reply to Matt Brubeck (:mbrubeck) from comment #2)
> (But I won't bother adding an entity for control-L, since that one is not
> localized in practice.)
Cool, I agree. :)
Less unnecessary overhead in code and for localizers.
Attachment #707272 -
Flags: review?(fyan) → review+
| Assignee | ||
Comment 4•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [completed-elm]
Updated•11 years ago
|
OS: Windows 8 Metro → Windows 8.1
You need to log in
before you can comment on or make changes to this bug.
Description
•