frontend: tigger paint when ctrl is pressed

This commit is contained in:
Qing 2024-02-16 10:28:15 +08:00
parent 40d845cc3c
commit 6447e821cb

View File

@ -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()
}
}