mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-11-11 09:34:35 +08:00
Merge pull request #574 from decafff/master
Added command to open "change custom text" popup
This commit is contained in:
commit
5de90b3f59
1 changed files with 13 additions and 0 deletions
|
@ -654,6 +654,19 @@ let commands = {
|
|||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
id: "changeCustomModeText",
|
||||
display: "Change custom text",
|
||||
exec: () => {
|
||||
if (config.mode === "custom") {
|
||||
showCustomTextPopup();
|
||||
setTimeout(() => {
|
||||
// Workaround to focus textarea since hideCommandLine() will focus test words
|
||||
$("#customTextPopup textarea").focus();
|
||||
}, 150);
|
||||
}
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue