Skip to content

Commit

Permalink
Use Enter hotkey to mark card as remembered
Browse files Browse the repository at this point in the history
  • Loading branch information
kubk committed Dec 9, 2023
1 parent 35c4bba commit 6d32c0c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/screens/deck-review/review.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ export const Review = observer(() => {
});

useHotkeys("enter", () => {
if (!reviewStore.currentCard?.isOpened) {
if (reviewStore.currentCard?.isOpened) {
onRight();
} else {
reviewStore.open();
}
});
Expand Down

0 comments on commit 6d32c0c

Please sign in to comment.