Skip to content

Commit

Permalink
kill events that are handled in keyboard shortcuts.
Browse files Browse the repository at this point in the history
Some extensions register a handler that I want to override.
  • Loading branch information
jkomoros committed Jul 7, 2024
1 parent fe01357 commit 2269894
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/card-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -912,6 +912,7 @@ class CardView extends connect(store)(PageViewElement) {
if (!newLocation) return false;
if (newLocation == location) return false;
store.dispatch(navigatePathTo(newLocation, false));
return killEvent(e);
}
//If you hold Alt then e.key will not be r
} else if (e.code == 'KeyR') {
Expand All @@ -921,6 +922,7 @@ class CardView extends connect(store)(PageViewElement) {
} else {
store.dispatch(randomizeCollection());
}
return killEvent(e);
}
}
}
Expand Down

0 comments on commit 2269894

Please sign in to comment.