mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
Restored '<A>' key behaviour for file list
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user