mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-22 23:20:58 -05:00
Esc now removes the last reply, fixes #7
This commit is contained in:
parent
fee3c97e1f
commit
1e25821816
1 changed files with 4 additions and 0 deletions
|
@ -477,6 +477,10 @@ export default observer(({ channel }: Props) => {
|
||||||
return send();
|
return send();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (e.key === "Escape" && replies.length > 0) {
|
||||||
|
setReplies(replies.slice(0, -1));
|
||||||
|
}
|
||||||
|
|
||||||
debouncedStopTyping(true);
|
debouncedStopTyping(true);
|
||||||
}}
|
}}
|
||||||
placeholder={
|
placeholder={
|
||||||
|
|
Loading…
Reference in a new issue