mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 16:32:59 +00:00
Bug 1168081 - Go to Line accesskey for view source tabs. r=Gijs
This commit is contained in:
parent
e55677d406
commit
3dd794cac9
@ -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);
|
||||
});
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user