mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-26 16:57:07 +08:00
fix(commandline): Make esc close the commandline when quick restart is set to esc (#3482) nishu-murmu
* Make esc close the commandline when quick restart is set to esc * condensed logic Co-authored-by: Miodec <bartnikjack@gmail.com>
This commit is contained in:
parent
6cbfb70df5
commit
e8de8934d6
1 changed files with 2 additions and 1 deletions
|
|
@ -395,7 +395,8 @@ $(document).ready(() => {
|
|||
(event.key?.toLowerCase() === "p" &&
|
||||
(event.metaKey || event.ctrlKey) &&
|
||||
event.shiftKey) ||
|
||||
(event.key === "Tab" && Config.quickRestart === "esc")) &&
|
||||
((event.key === "Tab" || event.key === "Escape") &&
|
||||
Config.quickRestart === "esc")) &&
|
||||
!$("#commandLineWrapper").hasClass("hidden")
|
||||
) {
|
||||
if (CommandlineLists.current.length > 1) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue