mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-06 13:40:16 +08:00
Added command to open "change custom text" popup
This commit is contained in:
parent
d8ab40b35f
commit
4b900c646f
1 changed files with 13 additions and 0 deletions
|
@ -647,6 +647,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…
Add table
Reference in a new issue