Respect settings target and allow command override
This commit is contained in:
1 parent
5abe13c726
commit
f62021633b
2 files changed
+12
-8
No files matched your search
+1
-1
@@ -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("");
|
||||
|
||||
Reference in new issue
Block a user