Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: ctrl+f in editor opens global notes search (fixes streetwriters/notesnook#718)

thecodrr217ad12b23d7
diff --git a/apps/web/src/common/key-map.js b/apps/web/src/common/key-map.js
index cbb811e06..5b2f3b9bd 100644
--- a/apps/web/src/common/key-map.js
+++ b/apps/web/src/common/key-map.js
@@ -39,7 +39,7 @@ const KEYMAP = [
description: "Search all notes",
global: false,
action: (e) => {
- if (e.currentTarget !== window) return;
+ if (e.target?.classList.contains("ProseMirror")) return;
e.preventDefault();
navigate("/search/notes");