From 0d39726eb90e362d430a48954218c5922e5697e1 Mon Sep 17 00:00:00 2001 From: adueck Date: Sun, 2 Oct 2022 15:13:39 +0400 Subject: [PATCH] debug --- website/src/App.tsx | 3 +++ website/src/screens/Options.tsx | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/website/src/App.tsx b/website/src/App.tsx index 89192af..1796640 100644 --- a/website/src/App.tsx +++ b/website/src/App.tsx @@ -246,12 +246,15 @@ class App extends Component { this.handlePowerSearch(); }); Mousetrap.bind(["ctrl+s", "command+s"], (e) => { + console.log("hit ctrl+s"); + if (this.state.user?.level === "basic") return; e.preventDefault(); if (!this.state.isolatedEntry) return; const toAdd = { entry: this.state.isolatedEntry, notes: "", }; + console.log("Adding this to wordlist", toAdd); addToWordlist(toAdd); }); Mousetrap.bind(["ctrl+\\", "command+\\"], (e) => { diff --git a/website/src/screens/Options.tsx b/website/src/screens/Options.tsx index 91fc553..0ac6ab8 100644 --- a/website/src/screens/Options.tsx +++ b/website/src/screens/Options.tsx @@ -177,7 +177,7 @@ function OptionsScreen({ ctrl / ⌘ + s - add word to wordlist + add word to wordlist }