refactor(multiverse): Change the keybinding for the reaction sending feature

This commit is contained in:
Damir Jelić
2025-03-25 14:30:14 +01:00
parent 71b6b213c4
commit d51cf1e76e
3 changed files with 6 additions and 2 deletions

View File

@@ -315,19 +315,23 @@ impl App {
match (key.modifiers, key.code) {
(KeyModifiers::NONE, F(1)) => self.set_global_mode(GlobalMode::Help),
(KeyModifiers::NONE, F(10)) => self.set_global_mode(GlobalMode::Recovery {
state: RecoveryViewState::new(self.client.clone()),
}),
(KeyModifiers::CONTROL, Char('j') | Down) => {
self.room_list.next_room();
let room_id = self.room_list.get_selected_room_id();
self.room_view.set_selected_room(room_id);
}
(KeyModifiers::CONTROL, Char('k') | Up) => {
self.room_list.previous_room();
let room_id = self.room_list.get_selected_room_id();
self.room_view.set_selected_room(room_id);
}
(KeyModifiers::CONTROL, Char('q')) => {
if !matches!(self.state.global_mode, GlobalMode::Default) {
self.set_global_mode(GlobalMode::Default);

View File

@@ -42,7 +42,7 @@ impl Widget for &mut HelpView {
Row::new(vec![Cell::from("Q"), Cell::from("Enable/disable the send queue")]),
Row::new(vec![Cell::from("M"), Cell::from("Send a message to the selected room")]),
Row::new(vec![
Cell::from("L"),
Cell::from("Ctrl-l"),
Cell::from("Like the last message in the selected room"),
]),
];

View File

@@ -80,7 +80,7 @@ impl RoomView {
}
},
(_, Char('L')) => self.toggle_reaction_to_latest_msg().await,
(KeyModifiers::CONTROL, Char('l')) => self.toggle_reaction_to_latest_msg().await,
(KeyModifiers::NONE, PageUp) => self.back_paginate(),