Skip to content

Commit

Permalink
Remove old browsers code
Browse files Browse the repository at this point in the history
  • Loading branch information
cbravobernal committed Aug 19, 2024
1 parent fd8396a commit 0f3e7ec
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,6 @@
const elementTarget = e.target;
let scroll, sel;

if ( e.key === 'Escape' ) {
// When pressing Escape: Opera 12 and 27 blur form fields, IE 8 clears them.
e.preventDefault();
elementTarget.setAttribute( 'data-tab-out', 'true' );
return;
}

if ( e.key !== 'Tab' || e.ctrlKey || e.altKey || e.shiftKey ) return;

if ( elementTarget.getAttribute( 'data-tab-out' ) === 'true' ) {
Expand Down

0 comments on commit 0f3e7ec

Please sign in to comment.