Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
5 changes: 5 additions & 0 deletions .changeset/feat-ctrl-f-search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
default: patch
---

Add Ctrl+F / Cmd+F keyboard shortcut to open Sable search instead of browser find-in-page
4 changes: 3 additions & 1 deletion src/app/features/search/Search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,8 @@ export function Search({ requestClose }: SearchProps) {
<Text size="T200" priority="300">
Type <b>#</b> for rooms, <b>@</b> for DMs and <b>*</b> for spaces. Hotkey:{' '}
<b>{isMacOS() ? KeySymbol.Command : 'Ctrl'} + k</b>
{' / '}
<b>{isMacOS() ? KeySymbol.Command : 'Ctrl'} + f</b>
</Text>
</Box>
</Modal>
Expand All @@ -423,7 +425,7 @@ export function SearchModalRenderer() {
window,
useCallback(
(event) => {
if (isKeyHotkey('mod+k', event)) {
if (isKeyHotkey('mod+k', event) || isKeyHotkey('mod+f', event)) {
event.preventDefault();
if (opened) {
setOpen(false);
Expand Down
Loading