mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1168081 - Go to Line accesskey for view source tabs. r=Gijs
This commit is contained in:
parent
8f17ff3241
commit
0783f7e68b
@ -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