mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-12 15:01:38 +03:00
chat: toggle input out of code mode after sending
Closes #2836. Code input would stick after sending a code message, so we now toggle out of it if we were in it, on enter.
This commit is contained in:
parent
40378d2b79
commit
6a10987602
@ -319,8 +319,12 @@ export class ChatInput extends Component {
|
||||
extraKeys: {
|
||||
Tab: cm =>
|
||||
this.patpAutocomplete(cm.getValue(), true),
|
||||
'Enter': cm =>
|
||||
this.messageSubmit(),
|
||||
'Enter': () => {
|
||||
this.messageSubmit();
|
||||
if (this.state.code) {
|
||||
this.toggleCode();
|
||||
}
|
||||
},
|
||||
'Shift-3': cm =>
|
||||
cm.getValue().length === 0
|
||||
? this.toggleCode()
|
||||
|
Loading…
Reference in New Issue
Block a user