Bug 1168081 - Go to Line accesskey for view source tabs. r=Gijs

This commit is contained in:
J. Ryan Stinnett 2015-05-29 11:51:27 -05:00
parent 8f17ff3241
commit 0783f7e68b
2 changed files with 7 additions and 0 deletions

View File

@ -885,6 +885,7 @@ let ViewSourceContent = {
contextMenuItems: [
{
id: "goToLine",
accesskey: true,
handler() {
sendAsyncMessage("ViewSource:PromptAndGoToLine");
}
@ -930,6 +931,11 @@ let ViewSourceContent = {
if ("checked" in itemSpec) {
item.setAttribute("type", "checkbox");
}
if (itemSpec.accesskey) {
let accesskeyName = `context_${itemSpec.id}_accesskey`;
item.setAttribute("accesskey",
this.bundle.GetStringFromName(accesskeyName))
}
menu.appendChild(item);
});

View File

@ -13,5 +13,6 @@ viewSelectionSourceTitle = DOM Source of Selection
viewMathMLSourceTitle = DOM Source of MathML
context_goToLine_label = Go to Line…
context_goToLine_accesskey = L
context_wrapLongLines_label = Wrap Long Lines
context_highlightSyntax_label = Syntax Highlighting