commit 576d6b2132f058261f42134ca183db725f89ece7
parent 986ee52e8a4c38d0d85f909badf193c41a3a7599
Author: zorkow <volker.sorge@gmail.com>
Date: Sat, 29 Aug 2015 02:11:15 +0100
Cleans event function.
Diffstat:
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/unpacked/extensions/MathEvents.js b/unpacked/extensions/MathEvents.js
@@ -136,10 +136,13 @@
// Call the output jax's event handler or the zoom handler
//
Handler: function (event,type,math) {
+ console.log(type);
if (AJAX.loadingMathMenu) {return EVENT.False(event)}
var jax = OUTPUT[math.jaxID];
+ console.log(jax);
if (!event) {event = window.event}
event.isContextMenu = (type === "ContextMenu");
+ console.log(jax[type]);
if (jax[type]) {return jax[type](event,math)}
if (EXTENSION.MathZoom) {return EXTENSION.MathZoom.HandleEvent(event,type,math)}
},
@@ -160,12 +163,8 @@
//
// Keydown event handler. Should only fire on Space key.
//
- // TODO: (sorge) Fit this into the Handler function.
- //
Keydown: function (event, math) {
- var jax = OUTPUT[this.jaxID];
if (event.keyCode === EVENT.KEY.SPACE) {
- // TODO: Put the focus on the first element.
EVENT.ContextMenu(event, this);
};
},