mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-07 07:30:23 +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"
|
placeholder="~zod/chatroom"
|
||||||
spellCheck="false"
|
spellCheck="false"
|
||||||
rows={1}
|
rows={1}
|
||||||
|
onKeyPress={e => {
|
||||||
|
if (e.key === "Enter") {
|
||||||
|
this.onClickJoin();
|
||||||
|
}
|
||||||
|
}}
|
||||||
style={{
|
style={{
|
||||||
resize: 'none',
|
resize: 'none',
|
||||||
}}
|
}}
|
||||||
|
Loading…
Reference in New Issue
Block a user