mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-23 05:56:10 +08:00
fix(commandline): adding toggle functionality for ctrl+shift+p command (#3475) nishu-murmu
* adding toggle functionality for ctrl+shift+p * prettier, ctrl shift p always works regardless of the quick restart setting Co-authored-by: Miodec <bartnikjack@gmail.com>
This commit is contained in:
parent
59be665418
commit
9897d4d8bb
1 changed files with 3 additions and 0 deletions
|
@ -392,6 +392,9 @@ $(document).ready(() => {
|
|||
// opens command line if escape or ctrl/cmd + shift + p
|
||||
if (
|
||||
((event.key === "Escape" && Config.quickRestart !== "esc") ||
|
||||
(event.key.toLowerCase() === "p" &&
|
||||
(event.metaKey || event.ctrlKey) &&
|
||||
event.shiftKey) ||
|
||||
(event.key === "Tab" && Config.quickRestart === "esc")) &&
|
||||
!$("#commandLineWrapper").hasClass("hidden")
|
||||
) {
|
||||
|
|
Loading…
Add table
Reference in a new issue