How to Restore default action a key once we have prevented it?
The problem I am facing is that i have prevented the default action of a key in a function using e.preventDefault();
.
Late开发者_运维知识库r when I am done with that function how can I restore the default action of that key?
You could either remove your custom event handler or have a condition on it so that you don't prevent the default action once you no longer need it.
精彩评论