alertify.js
alertify.js copied to clipboard
Fix SPACE key handling
The button's onclick event will fire both for mouse clicks and when the space key is pressed while the button has focus.
Test case: Open a confirm dialog then tab to focus the Cancel button then press space key, the Ok event will be triggered.
Issue #12 is no longer valid, as PR #33 maintains tab focus inside the dialog until an action happens.