Merge pull request #574 from decafff/master

Added command to open "change custom text" popup
This commit is contained in:
Jack 2020-11-11 13:51:32 +00:00 committed by GitHub
commit 5de90b3f59
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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