Skip to content

Commit

Permalink
fix: zen mode not exiting on escape key, fixed #372
Browse files Browse the repository at this point in the history
  • Loading branch information
mienaiyami committed Mar 6, 2024
1 parent 59a4398 commit 87d6c70
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/renderer/Components/Reader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,9 @@ const Reader = () => {
// /&& document.activeElement!.tagName === "BODY"
window.app.keyRepeated = e.repeat;

const keyStr = window.keyFormatter(e);
//todo check consequences of using false
// needed for `escape`
const keyStr = window.keyFormatter(e, false);
if (keyStr === "") return;

if (
Expand Down

0 comments on commit 87d6c70

Please sign in to comment.