From 6447e821cb7f20b0c94c96873859198e137a4bb7 Mon Sep 17 00:00:00 2001 From: Qing Date: Fri, 16 Feb 2024 10:28:15 +0800 Subject: [PATCH] frontend: tigger paint when ctrl is pressed --- web_app/src/components/PromptInput.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_app/src/components/PromptInput.tsx b/web_app/src/components/PromptInput.tsx index 8a72776..abd0891 100644 --- a/web_app/src/components/PromptInput.tsx +++ b/web_app/src/components/PromptInput.tsx @@ -46,7 +46,7 @@ const PromptInput = () => { } const onKeyUp = (e: React.KeyboardEvent) => { - if (e.key === "Enter" && !isProcessing) { + if (e.key === "Enter" && e.ctrlKey && prompt.length !== 0) { handleRepaintClick() } }