You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-16 06:42:26 +03:00
Escape should cancel a reply
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -131,8 +131,13 @@ export default class SendMessageComposer extends React.Component {
|
|||||||
this.onVerticalArrow(event, false);
|
this.onVerticalArrow(event, false);
|
||||||
} else if (this._prepareToEncrypt) {
|
} else if (this._prepareToEncrypt) {
|
||||||
this._prepareToEncrypt();
|
this._prepareToEncrypt();
|
||||||
|
} else if (event.key === Key.ESCAPE) {
|
||||||
|
dis.dispatch({
|
||||||
|
action: 'reply_to_event',
|
||||||
|
event: null,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
|
|
||||||
onVerticalArrow(e, up) {
|
onVerticalArrow(e, up) {
|
||||||
// arrows from an initial-caret composer navigates recent messages to edit
|
// arrows from an initial-caret composer navigates recent messages to edit
|
||||||
|
|||||||
Reference in New Issue
Block a user