summaryrefslogtreecommitdiff
path: root/extension/react-app/src/pages
diff options
context:
space:
mode:
Diffstat (limited to 'extension/react-app/src/pages')
-rw-r--r--extension/react-app/src/pages/gui.tsx7
1 files changed, 7 insertions, 0 deletions
diff --git a/extension/react-app/src/pages/gui.tsx b/extension/react-app/src/pages/gui.tsx
index ac7c5070..35c17444 100644
--- a/extension/react-app/src/pages/gui.tsx
+++ b/extension/react-app/src/pages/gui.tsx
@@ -202,6 +202,13 @@ function GUI(props: GUIProps) {
const onMainTextInput = (event?: any) => {
if (mainTextInputRef.current) {
let input = (mainTextInputRef.current as any).inputValue;
+
+ if (input.startsWith("#") && (input.length === 7 || input.length === 4)) {
+ localStorage.setItem("continueButtonColor", input);
+ (mainTextInputRef.current as any).setInputValue("");
+ return;
+ }
+
// cmd+enter to /edit
if (isMetaEquivalentKeyPressed(event)) {
input = `/edit ${input}`;