Web: Files: fixed ReactVirtualized__List tabindex

This commit is contained in:
Nikita Gopienko 2023-06-19 15:48:35 +03:00
parent 03d929be63
commit f408b2b1d8

View File

@ -56,6 +56,14 @@ class HotkeyStore {
};
activateHotkeys = (e) => {
const infiniteLoaderComponent = document.getElementsByClassName(
"ReactVirtualized__List"
)[0];
if (infiniteLoaderComponent) {
infiniteLoaderComponent.tabIndex = -1;
}
if (
this.dialogsStore.someDialogIsOpen ||
(e.target?.tagName === "INPUT" && e.target.type !== "checkbox") ||