Skip to content

Commit

Permalink
Correct default kbd shortcut behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonstyle committed Dec 5, 2023
1 parent 3a2640e commit b80a193
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/project/types/website/website-search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -442,10 +442,12 @@ function searchKbdShortcut(
) {
if (searchConfig && typeof searchConfig === "object") {
const kbd = searchConfig[kKbShortcutSearch];
if (Array.isArray(kbd)) {
return kbd;
} else {
return [kbd];
if (kbd) {
if (Array.isArray(kbd)) {
return kbd;
} else {
return [kbd];
}
}
}
return ["f", "/", "s"];
Expand Down

0 comments on commit b80a193

Please sign in to comment.