Use correct event handler for keypress, and delete previous error if we are reprocessing the scripts.

This commit is contained in:
Davide P. Cervone 2016-02-06 17:44:25 -05:00
parent 78fce5d3dc
commit beb8efaa04

View File

@ -2129,6 +2129,7 @@ MathJax.Hub = {
if (script.MathJax.state !== STATE.PENDING) {this.scriptAction[action](script)}
}
if (!script.MathJax) {script.MathJax = {state: STATE.PENDING}}
if (script.MathJax.error) delete script.MathJax.error;
if (script.MathJax.state !== STATE.PROCESSED) {state.scripts.push(script)}
}
}
@ -2371,7 +2372,7 @@ MathJax.Hub = {
HUB = MathJax.Hub;
error.oncontextmenu = EVENT.Menu;
error.onmousedown = EVENT.Mousedown;
error.keydown = EVENT.Keydown;
error.onkeydown = EVENT.Keydown;
error.tabIndex = HUB.getTabOrder(HUB.getJaxFor(script));
});
//