mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-25 23:35:02 +08:00
using optional chaining
This commit is contained in:
parent
f5435ce789
commit
59fa77fe18
1 changed files with 1 additions and 1 deletions
|
@ -392,7 +392,7 @@ $(document).ready(() => {
|
|||
// opens command line if escape or ctrl/cmd + shift + p
|
||||
if (
|
||||
((event.key === "Escape" && Config.quickRestart !== "esc") ||
|
||||
(event.key.toLowerCase() === "p" &&
|
||||
(event.key?.toLowerCase() === "p" &&
|
||||
(event.metaKey || event.ctrlKey) &&
|
||||
event.shiftKey) ||
|
||||
(event.key === "Tab" && Config.quickRestart === "esc")) &&
|
||||
|
|
Loading…
Reference in a new issue