I’m using the colorbox plugin for jQuery.
I know I don’t have to have a close button, and overlayClose: false will prevent the window from being closed by clicking the overlay.
Is there a way to remove the Esc key-listener event?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From looking at the source, the escape key is bound to the
keydown.cbox_closeevent from line 165:You could comment out that binding, or use it for some other purpose.