Skip to content

Commit beb8efa

Browse files
committed
Use correct event handler for keypress, and delete previous error if we are reprocessing the scripts.
1 parent 78fce5d commit beb8efa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

unpacked/MathJax.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2129,6 +2129,7 @@ MathJax.Hub = {
21292129
if (script.MathJax.state !== STATE.PENDING) {this.scriptAction[action](script)}
21302130
}
21312131
if (!script.MathJax) {script.MathJax = {state: STATE.PENDING}}
2132+
if (script.MathJax.error) delete script.MathJax.error;
21322133
if (script.MathJax.state !== STATE.PROCESSED) {state.scripts.push(script)}
21332134
}
21342135
}
@@ -2371,7 +2372,7 @@ MathJax.Hub = {
23712372
HUB = MathJax.Hub;
23722373
error.oncontextmenu = EVENT.Menu;
23732374
error.onmousedown = EVENT.Mousedown;
2374-
error.keydown = EVENT.Keydown;
2375+
error.onkeydown = EVENT.Keydown;
23752376
error.tabIndex = HUB.getTabOrder(HUB.getJaxFor(script));
23762377
});
23772378
//

0 commit comments

Comments
 (0)