mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
chore: enhance tab focus flow, skip file explorer container
This commit is contained in:
parent
26db4e8259
commit
5cddc2077e
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue