chore: enhance tab focus flow, skip file explorer container

This commit is contained in:
EnixCoda 2022-06-24 22:08:50 +08:00
parent 26db4e8259
commit 5cddc2077e

View file

@ -194,6 +194,7 @@ function LoadedFileExplorer({
// instead of unmounting, hide the element when not needed, so that the ref can be preserved after search result matches nothing
hidden: visibleNodes.nodes.length === 0,
})}
tabIndex={-1} // prevent getting focus via tab key on GitHub
ref={filesRef}
>
<div