-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add support for keyboard option #319
Conversation
add support for keyboard option
Hi @falexandrou, @tarlepp, Apologies for looking at this after such a long delay. Just diffing master from the last release and noticed it. Can either of you remember / explain what this actually adds to the library? Bootbox already explicitly handles the escape key itself; this is necessary so it can trigger the relevant callback (if supplied). Using the Bootstrap Any ideas? I'm afraid I'll have to revert it if not. Sorry. |
Hi @makeusabrew I was not sure how the escape key was handled and saw the explicit |
I'm unsure how you came to the conclusion it was a bug; the escape button From memory, no, we can't just hook into Bootstrap's events because we I'll revert this commit later today I'm afraid. Thanks, Nick On Thu, Jan 8, 2015 at 9:08 AM, Fotis Alexandrou notifications@github.com
|
@makeusabrew It didn't work for me, so i thought it was a bug. I'll try to reproduce the issue but I don't have the time right now. You can prevent the dialog from closing if you use If you think you should revert it, please go ahead. |
The functionality is there and has been there for the past three years - it If the escape key functionality doesn't work for you, that's a bug and a Thanks, Nick On Thu, Jan 8, 2015 at 10:39 AM, Fotis Alexandrou notifications@github.com
|
@makeusabrew I'll try to reproduce the issue i had in the first place then |
Hi, in your examples, I could close the modal by pressing ESC only in the first examples (alert, confirm, prompt, prompt with default value) but in the other examples (custom*) ESC key would do nothing. Browser is Version 47.0.2526.111 on Mac OS X 10.11.2 Would be nice to be able to add handler functions for keys in one of the following ways:
|
add support for keyboard option
No description provided.