summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcboyden2017-10-19 16:19:27 (GMT)
committerolstjos2017-10-19 16:19:27 (GMT)
commitec9b9a6088df972d90d5f240bdcbcad9200532f7 (patch)
tree761aaab5215b99d716fcfb8d1cc2652e736439eb
parent863357491e866186beb9c5e140bd1f4d02a7cb9a (diff)
Issue #2914241 by dsnopek, cboyden, joseph.olstad: Focus not confined to modal Media Browser - keyboard trap7.x-2.13
-rw-r--r--js/media.browser.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/media.browser.js b/js/media.browser.js
index 0fc5015..66b7a81 100644
--- a/js/media.browser.js
+++ b/js/media.browser.js
@@ -43,7 +43,7 @@ Drupal.behaviors.MediaBrowser = {
// Keep keyboard focus from going to the browser chrome.
$('body', context).once(function () {
- $(window).on('keydown', function (event) {
+ $(window).bind('keydown', function (event) {
if (event.keyCode === 9) {
var tabbables = $(':tabbable'),
first = tabbables.filter(':first'),