Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions ts/ui/menu/MJContextMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,20 @@ export class MJContextMenu extends ContextMenu {
this.nofocus = false;
}

public keydown(event: KeyboardEvent) {
if (event.key === 'Tab') {
this.unpost();
}
super.keydown(event);
}

/*======================================================================*/

public generateHtml() {
super.generateHtml();
this.html.setAttribute('aria-label', localize('Title/Menu'));
}

/**
* Find an item in the menu (recursively descending into submenus, if needed)
*
Expand Down
1 change: 1 addition & 0 deletions ts/ui/menu/__locales__/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
"Title/Annotation": "MathJax Annotationstext",
"Title/Braille": "MathJax Brailleschrift",
"Title/Error": "MathJax Fehlermeldung",
"Title/Menu": "MathJax Kontextmenü",
"Title/Mml": "MathJax MathML-Ausdruck",
"Title/Source": "MathJax original Quelltext",
"Title/Speech": "MathJax Sprachausgabe",
Expand Down
1 change: 1 addition & 0 deletions ts/ui/menu/__locales__/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
"Title/Annotation": "MathJax Annotation Text",
"Title/Braille": "MathJax Braille Text",
"Title/Error": "MathJax Error Message",
"Title/Menu": "MathJax Contextual Menu",
"Title/Mml": "MathJax MathML Expression",
"Title/Source": "MathJax Original Source",
"Title/Speech": "MathJax Speech Text",
Expand Down
Loading