mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 01:15:28 +00:00
Esc now removes the last reply, fixes #7
This commit is contained in:
@@ -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={
|
||||
|
||||
Reference in New Issue
Block a user