Only trap escape key for cancel reply if there is a reply (#11140)
fall through (to clear read marker) otherwise Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>pull/28217/head
parent
d404e0656a
commit
3ac9066e46
|
@ -351,13 +351,15 @@ export class SendMessageComposer extends React.Component<ISendMessageComposerPro
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case KeyBindingAction.CancelReplyOrEdit:
|
case KeyBindingAction.CancelReplyOrEdit:
|
||||||
dis.dispatch({
|
if (!!this.context.replyToEvent) {
|
||||||
action: "reply_to_event",
|
dis.dispatch({
|
||||||
event: null,
|
action: "reply_to_event",
|
||||||
context: this.context.timelineRenderingType,
|
event: null,
|
||||||
});
|
context: this.context.timelineRenderingType,
|
||||||
event.preventDefault();
|
});
|
||||||
event.stopPropagation();
|
event.preventDefault();
|
||||||
|
event.stopPropagation();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue