简体   繁体   中英

Remove Event Listener “keydown” from ExtJS slider

I am using in my project slider Class from ExtJS. Me on the onkeypress event to perform some action. Everything would have been nice if it were not for slider. He also uses the event only onkeypress. Question: how to delete this event? I have tried in terms of the .mun - it did not work. Any Ideas?

Example: http://www.jsfiddle.net/3ZLFV/32/

Have you tried explicitely setting the onkeypress event handler for the slider and having it simply return true? This should allow natural event propogation to take place.

在jQuery中

$('#slider').unbind();

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM