mirror of
https://github.com/urbit/shrub.git
synced 2024-12-01 06:35:32 +03:00
chat: join channel on enter
Adds quick keypress handler for joining chats.
This commit is contained in:
parent
8d98348233
commit
8a2b3d1822
File diff suppressed because one or more lines are too long
@ -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',
|
||||
}}
|
||||
|
Loading…
Reference in New Issue
Block a user