mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-06 21:48:08 +08:00
Added result options to commandline
This commit is contained in:
parent
ec41c63f49
commit
01be6603d0
1 changed files with 38 additions and 0 deletions
|
@ -614,6 +614,44 @@ let commands = {
|
|||
window.open("https://discord.gg/monkeytype");
|
||||
},
|
||||
},
|
||||
{
|
||||
id: "repeatTest",
|
||||
display: "Repeat test",
|
||||
exec: () => {
|
||||
if (resultVisible) {
|
||||
restartTest(true);
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
id: "practiceMissedWords",
|
||||
display: "Practice missed words",
|
||||
exec: () => {
|
||||
if (Object.keys(missedWords).length > 0) {
|
||||
initPractiseMissedWords();
|
||||
} else {
|
||||
showNotification("You haven't missed any words.", 2000);
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
id: "toggleWordHistory",
|
||||
display: "Toggle word history",
|
||||
exec: () => {
|
||||
if (resultVisible) {
|
||||
toggleResultWordsDisplay();
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
id: "saveScreenshot",
|
||||
display: "Save screenshot",
|
||||
exec: () => {
|
||||
if (resultVisible) {
|
||||
copyResultToClipboard();
|
||||
}
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue