mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Merge branch 'develop-ascraeus' into develop
* develop-ascraeus: [ticket/12543] Only take over ENTER and ESC keys when alert box is active.
This commit is contained in:
commit
55aa5c8296
1 changed files with 2 additions and 2 deletions
|
@ -84,8 +84,8 @@ phpbb.alert = function(title, msg, fadedark) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
});
|
});
|
||||||
|
|
||||||
$(document).bind('keydown', function(e) {
|
$(document).keydown(function(e) {
|
||||||
if (e.keyCode === keymap.ENTER || e.keyCode === keymap.ESC) {
|
if ((e.keyCode === keymap.ENTER || e.keyCode === keymap.ESC) && dark.is(':visible')) {
|
||||||
dark.trigger('click');
|
dark.trigger('click');
|
||||||
|
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
Loading…
Add table
Reference in a new issue