Commit ec9b9a60 authored by cboyden's avatar cboyden Committed by olstjos

Issue #2914241 by dsnopek, cboyden, joseph.olstad: Focus not confined to modal...

Issue #2914241 by dsnopek, cboyden, joseph.olstad: Focus not confined to modal Media Browser - keyboard trap
parent 86335749
......@@ -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'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment