mirror of
https://github.com/iv-org/invidious.git
synced 2025-05-02 06:26:27 -04:00
improve accessibility
This commit is contained in:
parent
8a44bd11d2
commit
a3da03bee9
12 changed files with 45 additions and 29 deletions
|
@ -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 '/'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue