Respect settings target and allow command override

This commit is contained in:
Michael Shamoon committed 2022-10-20 20:04:24 -07:00
1 parent 5abe13c726
commit f62021633b
2 files changed
+12 -8

No files matched your search

+1 -1
View File
@@ -197,7 +197,7 @@ function Home({ initialSettings }) {
useEffect(() => {
function handleKeyDown(e) {
if (e.target.tagName === "BODY") {
if (String.fromCharCode(e.keyCode).match(/(\w|\s)/g) && !(e. altKey || e.ctrlKey || e.metaKey || e.shiftKey)) {
if (String.fromCharCode(e.keyCode).match(/(\w|\s)/g) && !(e.altKey || e.ctrlKey || e.metaKey || e.shiftKey)) {
setSearching(true);
} else if (e.key === "Escape") {
setSearchString("");