web/roomview: autofocus input box

This commit is contained in:
Tulir Asokan 2024-10-10 21:50:14 +03:00
parent 543c3bcc25
commit d428a26b0a

View file

@ -43,6 +43,7 @@ const RoomView = ({ room }: RoomViewProps) => {
<TimelineView room={room} /> <TimelineView room={room} />
<form className="message-composer" onSubmit={sendMessage}> <form className="message-composer" onSubmit={sendMessage}>
<input <input
autoFocus
type="text" type="text"
value={text} value={text}
onChange={evt => setText(evt.target.value)} onChange={evt => setText(evt.target.value)}