keybinds: Fix invalid return
Mousetrap doesn't take an async function. It either accepts False (stop key propagation) or any other value (bubble up the event)
This commit is contained in:
parent
7ee4b80a6e
commit
0765d209f2
@ -113,13 +113,13 @@ Mousetrap.bind(["alt+a"], function (e) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Show the help menu.
|
// Show the help menu.
|
||||||
Mousetrap.bind(["alt+/"], async function (e) {
|
Mousetrap.bind(["alt+/"], function (e) {
|
||||||
if (isIgnoredKeybind(e)) {
|
if (isIgnoredKeybind(e)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
await navigate("Help");
|
/* eslint-disable no-console */
|
||||||
|
navigate("Help").catch((err) => console.log(err));
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user