Skip to content
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions apps/desktop/changelog/next.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Shiny new things

- add a button to open the search panel (#4296)

## Improvements

## No longer broken
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,5 +165,14 @@ const SearchTrigger = () => {
{ preventDefault: true },
)

return null
const t = useI18n()
return (
<ActionButton
shortcut="$mod+K"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be a customizable shortcut rather than a constant.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image Added a setting spot

tooltip={t("words.search")}
onClick={() => setAppSearchOpen(true)}
>
<i className="i-mgc-search-3-cute-re text-text-secondary size-5" />
</ActionButton>
)
}
Loading