mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-07 15:33:45 -04:00
fix(multiverse): Add a shortcut to mark rooms as read back
This commit is contained in:
@@ -352,6 +352,10 @@ impl App {
|
||||
self.room_view.set_selected_room(room_id);
|
||||
}
|
||||
|
||||
Event::Key(KeyEvent { code: Char('m'), modifiers: KeyModifiers::ALT, .. }) => {
|
||||
self.room_view.mark_as_read().await
|
||||
}
|
||||
|
||||
Event::Key(KeyEvent { code: Char('q'), modifiers: KeyModifiers::CONTROL, .. }) => {
|
||||
if !matches!(self.state.global_mode, GlobalMode::Default) {
|
||||
self.set_global_mode(GlobalMode::Default);
|
||||
|
||||
@@ -27,6 +27,10 @@ impl Widget for &mut HelpView {
|
||||
Row::new(vec![Cell::from("ALT-l"), Cell::from("Open the linked chunk details view")]),
|
||||
Row::new(vec![Cell::from("ALT-e"), Cell::from("Open the events details view")]),
|
||||
Row::new(vec![Cell::from("ALT-r"), Cell::from("Open the read receipt details view")]),
|
||||
Row::new(vec![
|
||||
Cell::from("ALT-m"),
|
||||
Cell::from("Mark the currently selected room as read"),
|
||||
]),
|
||||
Row::new(vec![Cell::from("Ctrl-q"), Cell::from("Quit Multiverse")]),
|
||||
Row::new(vec![
|
||||
Cell::from("Ctrl-j / Ctrl-down"),
|
||||
|
||||
Reference in New Issue
Block a user