Autofocus inputs (#486)

This commit is contained in:
Jeremy 2024-11-05 11:54:57 +03:00 committed by GitHub
parent affd387d03
commit cab9fddecc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 6 deletions

View file

@ -254,6 +254,7 @@ export function MultimodalInput({
className
)}
rows={3}
autoFocus
onKeyDown={(event) => {
if (event.key === 'Enter' && !event.shiftKey) {
event.preventDefault();