diff --git a/src/ui/components/file_list.rs b/src/ui/components/file_list.rs index 6849ddd..ec21799 100644 --- a/src/ui/components/file_list.rs +++ b/src/ui/components/file_list.rs @@ -386,7 +386,7 @@ impl Component for FileList { self.states.select_all(); Msg::None } - false => Msg::None, + false => Msg::OnKey(key), }, KeyCode::Char('m') => { // Toggle current file in selection @@ -621,6 +621,11 @@ mod tests { component.on(Event::Key(KeyEvent::from(KeyCode::Backspace))), Msg::OnKey(KeyEvent::from(KeyCode::Backspace)) ); + // Verify 'A' still works + assert_eq!( + component.on(Event::Key(KeyEvent::from(KeyCode::Char('a')))), + Msg::OnKey(KeyEvent::from(KeyCode::Char('a'))) + ); } #[test]