You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 8, 2017. It is now read-only.
I have a modal popup which shows a error message. At the bottom of this popup there is a button to close the popup and do some other things.
I'd like to close the popup while pressing enter and setting the focus to the button will not work.
So I have decided to use jwerty for this and I have the following binding:
It works fine. But after the popup is closed the primary behaviour regarding pressing event should be restored so I'd like to unbind this immediately after the click on btnClose2 has occured.
Hi there!
I have a modal popup which shows a error message. At the bottom of this popup there is a button to close the popup and do some other things.
I'd like to close the popup while pressing enter and setting the focus to the button will not work.
So I have decided to use jwerty for this and I have the following binding:
It works fine. But after the popup is closed the primary behaviour regarding pressing event should be restored so I'd like to unbind this immediately after the click on btnClose2 has occured.
I tried the two following possible solutions:
1)
Alternatively, jwerty.event will return a function which, when run, unbinds the event, so:
In both cases the unbinding will not work.
Please give me a hint how to solve this.
Many thanks for your help
Carsten
The text was updated successfully, but these errors were encountered: