Esc now removes the last reply, fixes #7

This commit is contained in:
janderedev 2021-08-06 15:40:32 +02:00
parent fee3c97e1f
commit 1e25821816
No known key found for this signature in database
GPG key ID: 5D5E18ACB990F57A

View file

@ -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={