Esc now removes the last reply, fixes #7
parent
e984c7449a
commit
1ffd3f991e
|
|
@ -477,6 +477,10 @@ export default observer(({ channel }: Props) => {
|
|||
return send();
|
||||
}
|
||||
|
||||
if (e.key === "Escape" && replies.length > 0) {
|
||||
setReplies(replies.slice(0, -1));
|
||||
}
|
||||
|
||||
debouncedStopTyping(true);
|
||||
}}
|
||||
placeholder={
|
||||
|
|
|
|||
Loading…
Reference in New Issue