From 6ebd11d5394c7730d34ab8b6d21cd4ce958037cb Mon Sep 17 00:00:00 2001 From: Alexander Yumashev <33555768+alex-jitbit@users.noreply.github.com> Date: Tue, 29 Jan 2019 16:27:24 +0200 Subject: [PATCH] fix #31 --- jqModal.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jqModal.js b/jqModal.js index a3ed417..a9ddef5 100644 --- a/jqModal.js +++ b/jqModal.js @@ -276,7 +276,7 @@ // close modal if the esc key is pressed and closeOnEsc is set to true m.unbind("keydown",$.jqm.closeOnEscFunc); if(o.closeOnEsc) { - m.attr("tabindex", 0).bind("keydown",$.jqm.closeOnEscFunc).focus(); + m.attr("tabindex", 0).bind("keydown",$.jqm.closeOnEscFunc); } }