1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-10 09:22:25 +03:00

Mark room as read when escape is pressed

Signed-off-by: Aaron Raimist <aaron@raim.ist>
This commit is contained in:
Aaron Raimist
2020-03-24 21:35:17 -05:00
parent 26bda5933b
commit 76104edeca

View File

@@ -560,6 +560,12 @@ export default createReactClass({
handled = true;
}
break;
case Key.ESCAPE:
this._messagePanel.forgetReadMarker();
this.jumpToLiveTimeline();
handled = true;
break;
}
if (handled) {