summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-06-10 16:36:56 +0000
committerDries Buytaert <dries@buytaert.net>2010-06-10 16:36:56 +0000
commita3445b5038dea75558d6b7a2435f02f44851e717 (patch)
tree4f209ec28ac549fb474ce17070d721306a38017d /modules
parente4dd88023d4ae4e361d42d2c01a1a81113f7e861 (diff)
downloadbrdo-a3445b5038dea75558d6b7a2435f02f44851e717.tar.gz
brdo-a3445b5038dea75558d6b7a2435f02f44851e717.tar.bz2
- Patch #786394 by casey: improve overlay keydown handler (TAB-navigation).
Diffstat (limited to 'modules')
-rw-r--r--modules/overlay/overlay-parent.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/overlay/overlay-parent.js b/modules/overlay/overlay-parent.js
index eda0463aa..e39978993 100644
--- a/modules/overlay/overlay-parent.js
+++ b/modules/overlay/overlay-parent.js
@@ -613,7 +613,7 @@ Drupal.overlay.eventhandlerRestrictKeyboardNavigation = function (event) {
// move the focus along until it is.
var direction = event.shiftKey ? -1 : 1;
var current = this.$tabbables.index(event.target);
- var $allowedParent = $('#overlay-container, .overlay-displace-top, .overlay-displace-bottom');
+ var $allowedParent = '#overlay-container, .overlay-displace-top, .overlay-displace-bottom';
if (current != -1 && this.$tabbables[current + direction] && !this.$tabbables.eq(current + direction).closest($allowedParent).length) {
while (this.$tabbables[current + direction] && !this.$tabbables.eq(current + direction).closest($allowedParent).length) {
current = current + direction;