mootools/mootools-core — pull request #2349 by bastianschilbe (2012-04-12 20:51:47+00:00)
Title: Type parameter in callback function for custom conditional events

This will work then:

Element.Events.textchange = {
base:'keyup',
condition: function(){return true}
};

​$('text').addEvent('textchange', function(e,t){
// e.type = keyup
// t = textchange
})​