mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/12543] Only take over ENTER and ESC keys when alert box is active.
PHPBB3-12543
This commit is contained in:
parent
bec9b7c34e
commit
bc31a0d252
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