jQuery UI Widgets › Forums › Dialogs and Notifications › Window › Intercept ESCAPE key one time to stop window close
This topic contains 2 replies, has 3 voices, and was last updated by Jeryll 1 week, 2 days ago.
I have a window open and the ESCAPE key closes it and I want this to happen.
But I am doing another task on the window where I want the ESCAPE key to stop that task but I do not want the window to close at this point.
So I need to intercept the ESCAPE key one time to stop my task but then a second press of the ESCAPE key is fine to close the window.
So can I intercept the ESCAPE key to stop my task and stop that first press of the key from closing the window?
You can set the keyboardCloseKey to a very big number.
Here is an example: https://jsfiddle.net/6zmkgw05/5/
You must be logged in to reply to this topic.