mirror of
https://github.com/iv-org/invidious.git
synced 2025-05-31 14:11:54 +05:30
improve accessibility
This commit is contained in:
@ -137,7 +137,7 @@
|
||||
if (focused_tag === 'textarea') return;
|
||||
if (focused_tag === 'input') {
|
||||
let focused_type = document.activeElement.type.toLowerCase();
|
||||
if (!focused_type.match(allowed)) return;
|
||||
if (!allowed.test(focused_type)) return;
|
||||
}
|
||||
|
||||
// Focus search bar on '/'
|
||||
|
Reference in New Issue
Block a user