improve accessibility

This commit is contained in:
ChunkyProgrammer 2023-03-23 18:10:53 -04:00
parent 8a44bd11d2
commit a3da03bee9
12 changed files with 45 additions and 29 deletions

View file

@ -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 '/'