mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-05 22:03:50 +03:00
chat: set code toggle only at start of input
This commit is contained in:
parent
55d2f555e9
commit
de077ffb47
@ -380,7 +380,7 @@ export class ChatInput extends Component {
|
||||
message = [];
|
||||
}
|
||||
|
||||
// perf:
|
||||
// perf:
|
||||
//setTimeout(this.closure, 2000);
|
||||
|
||||
this.editor.setValue('');
|
||||
@ -454,7 +454,9 @@ export class ChatInput extends Component {
|
||||
? this.completePatp(state.selectedSuggestion)
|
||||
: this.messageSubmit(),
|
||||
'Shift-3': (cm) =>
|
||||
this.toggleCode()
|
||||
cm.getValue().length === 0
|
||||
? this.toggleCode()
|
||||
: CodeMirror.Pass
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user