Skip to content

Commit

Permalink
Fix quit hotkey not working when thumbnails or outline view is focused
Browse files Browse the repository at this point in the history
Fixes #3529
  • Loading branch information
mrtcode committed Dec 8, 2023
1 parent 24466da commit 9d8ba06
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/common/components/sidebar/outline-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ function Item({ item, children, onNavigate, onOpenLink, onUpdate }) {
}

function handleKeyDown(event) {
event.preventDefault();
if (event.key === 'Enter' && item.url) {
onOpenLink(item.url);
}
Expand Down
1 change: 0 additions & 1 deletion src/common/components/sidebar/thumbnails-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ function ThumbnailsView(props) {
}

function handleKeyDown(e) {
e.preventDefault();
if (pressedPreviousKey(e)) {
let pageIndex = selected[selected.length - 1];
if (pageIndex === undefined) {
Expand Down

0 comments on commit 9d8ba06

Please sign in to comment.