mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-15 23:52:10 +03:00
Mark room as read when escape is pressed
Signed-off-by: Aaron Raimist <aaron@raim.ist>
This commit is contained in:
parent
26bda5933b
commit
76104edeca
1 changed files with 6 additions and 0 deletions
|
@ -560,6 +560,12 @@ export default createReactClass({
|
||||||
handled = true;
|
handled = true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case Key.ESCAPE:
|
||||||
|
this._messagePanel.forgetReadMarker();
|
||||||
|
this.jumpToLiveTimeline();
|
||||||
|
handled = true;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (handled) {
|
if (handled) {
|
||||||
|
|
Loading…
Reference in a new issue