Added command to open "change custom text" popup

This commit is contained in:
decaf 2020-11-11 07:33:57 -06:00
parent d8ab40b35f
commit 4b900c646f

View file

@ -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);
}
},
},
],
};