frontend: tigger paint when ctrl is pressed
This commit is contained in:
parent
40d845cc3c
commit
6447e821cb
@ -46,7 +46,7 @@ const PromptInput = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const onKeyUp = (e: React.KeyboardEvent) => {
|
const onKeyUp = (e: React.KeyboardEvent) => {
|
||||||
if (e.key === "Enter" && !isProcessing) {
|
if (e.key === "Enter" && e.ctrlKey && prompt.length !== 0) {
|
||||||
handleRepaintClick()
|
handleRepaintClick()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user