From 4b900c646fc714b975917a6a9e8331ab0dcc5ecc Mon Sep 17 00:00:00 2001 From: decaf Date: Wed, 11 Nov 2020 07:33:57 -0600 Subject: [PATCH] Added command to open "change custom text" popup --- src/js/commandline.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/js/commandline.js b/src/js/commandline.js index e329fef24..e62100451 100644 --- a/src/js/commandline.js +++ b/src/js/commandline.js @@ -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); + } + }, + }, ], };