Restored '<A>' key behaviour for file list
@@ -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]
