remove deprecated keyCode (#2463)

This commit is contained in:
Hashen 2022-04-18 17:53:22 +05:30 committed by GitHub
parent 99a7e9e1d7
commit 1edec28d86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -207,7 +207,7 @@ class Fullscreen {
// Trap focus inside container
trapFocus = (event) => {
// Bail if iOS, not active, not the tab key
if (browser.isIos || !this.active || event.key !== 'Tab' || event.keyCode !== 9) {
if (browser.isIos || !this.active || event.key !== 'Tab') {
return;
}