Skip to content

Commit

Permalink
feat(client): (re-)add shortcut 'r' to refresh notes
Browse files Browse the repository at this point in the history
  • Loading branch information
neopostmodern committed Apr 1, 2023
1 parent c59f6e0 commit de5c45d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions client/src/renderer/containers/NotesPage/NotesPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,16 @@ const NotesPage: React.FC = () => {
};
}, []);

useEffect(() => {
Mousetrap.bind('r', () => {
entitiesUpdatedSince.refetch();
});

return () => {
Mousetrap.unbind('r');
};
}, [entitiesUpdatedSince]);

const content = [];
let primaryActions = null;

Expand Down

0 comments on commit de5c45d

Please sign in to comment.