Skip to content

Commit

Permalink
fix: focus-typing was working with unicode
Browse files Browse the repository at this point in the history
  • Loading branch information
rejetto committed Oct 30, 2024
1 parent 1d6de4a commit 39bb325
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/BrowseFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function FilesList() {
})
const focusIndex = useMemo(() => {
if (!focus) return -1
const match = (x: typeof theList[0]) => x.name.toLocaleLowerCase().startsWith(focus)
const match = (x: typeof theList[0]) => x.name.toLocaleLowerCase().normalize().startsWith(focus)
const inThisPage = thisPage.findIndex(match) // first attempt within this page
if (inThisPage >= 0)
return inThisPage + offset
Expand Down

0 comments on commit 39bb325

Please sign in to comment.