We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9cf6b54 commit eb066fcCopy full SHA for eb066fc
1 file changed
ts/a11y/explorer/KeyExplorer.ts
@@ -1953,11 +1953,14 @@ export class SpeechExplorer
1953
*/
1954
protected addHtmlEvents() {
1955
for (const html of Array.from(this.node.querySelectorAll('mjx-html'))) {
1956
- html.addEventListener('click', (event) => {
+ const stop = (event: Event) => {
1957
if (html.contains(document.activeElement)) {
1958
event.stopPropagation();
1959
}
1960
- });
+ };
1961
+ html.addEventListener('click', stop);
1962
+ html.addEventListener('keydown', stop);
1963
+ html.addEventListener('dblclick', stop);
1964
1965
1966
0 commit comments