mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-25 00:16:29 +02:00
enter to submit voice input
This commit is contained in:
parent
cfc69ebacb
commit
96e5ecdbe5
1 changed files with 11 additions and 1 deletions
|
|
@ -488,7 +488,17 @@ function ChatInputInner({
|
|||
/>
|
||||
{isRecording ? (
|
||||
/* ── Recording bar ── */
|
||||
<div className="flex items-center gap-3 px-4 py-3">
|
||||
<div
|
||||
className="flex items-center gap-3 px-4 py-3"
|
||||
tabIndex={0}
|
||||
ref={(el) => el?.focus()}
|
||||
onKeyDown={(e) => {
|
||||
if (e.key === 'Enter' && !e.shiftKey && recordingText?.trim()) {
|
||||
e.preventDefault()
|
||||
onSubmitRecording?.()
|
||||
}
|
||||
}}
|
||||
>
|
||||
<button
|
||||
type="button"
|
||||
onClick={onCancelRecording}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue