mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-31 05:37:59 +01:00
Merge pull request #2458 from prototech/ticket/12543
[ticket/12543] Only take over ENTER and ESC keys when alert box is active. * prototech/ticket/12543: [ticket/12543] Only take over ENTER and ESC keys when alert box is active.
This commit is contained in:
commit
1b73c217f0
@ -84,8 +84,8 @@ phpbb.alert = function(title, msg, fadedark) {
|
||||
e.stopPropagation();
|
||||
});
|
||||
|
||||
$(document).bind('keydown', function(e) {
|
||||
if (e.keyCode === keymap.ENTER || e.keyCode === keymap.ESC) {
|
||||
$(document).keydown(function(e) {
|
||||
if ((e.keyCode === keymap.ENTER || e.keyCode === keymap.ESC) && dark.is(':visible')) {
|
||||
dark.trigger('click');
|
||||
|
||||
e.preventDefault();
|
||||
|
Loading…
x
Reference in New Issue
Block a user