chat: join channel on enter

Adds quick keypress handler for joining chats.
This commit is contained in:
Matilde Park 2019-12-04 23:41:07 -05:00
parent 8d98348233
commit 8a2b3d1822
2 changed files with 6 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -110,6 +110,11 @@ export class JoinScreen extends Component {
placeholder="~zod/chatroom"
spellCheck="false"
rows={1}
onKeyPress={e => {
if (e.key === "Enter") {
this.onClickJoin();
}
}}
style={{
resize: 'none',
}}