1var education_insight_Keyboard_loop = function (elem) { 2 var education_insight_tabbable = elem.find('select, input, textarea, button, a').filter(':visible'); 3 var education_insight_firstTabbable = education_insight_tabbable.first(); 4 var education_insight_lastTabbable = education_insight_tabbable.last(); 5 /*set focus on first input*/ 6 education_insight_firstTabbable.focus(); 7 8 /*redirect last tab to first input*/ 9 education_insight_lastTabbable.on('keydown', function (e) { 10 if ((e.which === 9 && !e.shiftKey)) { 11 e.preventDefault(); 12 education_insight_firstTabbable.focus(); 13 } 14 }); 15 16 /*redirect first shift+tab to last input*/ 17 education_insight_firstTabbable.on('keydown', function (e) { 18 if ((e.which === 9 && e.shiftKey)) { 19 e.preventDefault(); 20 education_insight_lastTabbable.focus(); 21 } 22 }); 23 24 /* allow escape key to close insiders div */ 25 elem.on('keyup', function (e) { 26 if (e.keyCode === 27) { 27 elem.hide(); 28 }; 29 }); 30};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.