Autofocus inputs (#486)
This commit is contained in:
parent
affd387d03
commit
cab9fddecc
3 changed files with 9 additions and 6 deletions
|
|
@ -254,6 +254,7 @@ export function MultimodalInput({
|
|||
className
|
||||
)}
|
||||
rows={3}
|
||||
autoFocus
|
||||
onKeyDown={(event) => {
|
||||
if (event.key === 'Enter' && !event.shiftKey) {
|
||||
event.preventDefault();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue