Menu

#262 DynElement.captureKeyEvents bug (Part 2)

open
nobody
None
5
2005-09-26
2005-09-26
Fausto
No

the dynkeyevent.js file has this method:
DynKeyEvent._keyEventListener=function(e)

and this lines:

if(evt.defaultValue==false) {
if(e.cancelBubble) e.cancelBubble=true;
if(e.stopPropagation) e.stopPropagation();
}

I think it should be:
if(evt.defaultValue==false) {
if(evt.cancelBubble) e.cancelBubble=true;
if(evt.stopPropagation) e.stopPropagation();
}

note the evt instead of the e.

I changed on my code and worked.
The goal? allow one to disable propagation of of key
events to the higher hierarchy allowing one to "eat" the
keys inside a widget. That's how I found out and fixed it.

I have many more fixes too. How should I do it?

Fausto.

Discussion


Log in to post a comment.