mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-07 15:33:45 -04:00
refactor(multiverse): Change the keybinding for the reaction sending feature
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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"),
|
||||
]),
|
||||
];
|
||||
|
||||
@@ -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(),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user