diff --git a/modules/kbd_nav/js/kbd_nav.js b/modules/kbd_nav/js/kbd_nav.js index 83c95969..25eb7210 100644 --- a/modules/kbd_nav/js/kbd_nav.js +++ b/modules/kbd_nav/js/kbd_nav.js @@ -27,6 +27,11 @@ $.fn.KbdNavigation = function(options, callback) { if ($('#sb-body-inner>img#sb-content').is(':visible')) { return false; } + // ignore shortcuts when inside a jQuery dialog; otherwise it becomes impossible + // to navigate the cursor inside an input box + if ($('.ui-widget-overlay').is(':visible')) { + return true; + } var direction = "ltr"; if (document.body) { @@ -94,4 +99,4 @@ $.fn.KbdNavigation = function(options, callback) { $(document).ready( function() { $(document).KbdNavigation({}); if ($('#sb-content').is(':visible')) { return true; } -}); \ No newline at end of file +});