mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
SetupActivity: <CTRL+E> as <DEL>
This commit is contained in:
@@ -120,6 +120,15 @@ impl SetupActivity {
|
||||
if key.modifiers.intersects(KeyModifiers::CONTROL) {
|
||||
// Match char
|
||||
match ch {
|
||||
'e' | 'E' => {
|
||||
// Prompt to delete selected key
|
||||
self.yesno_opt = YesNoDialogOption::No; // Default to no
|
||||
self.popup = Some(Popup::YesNo(
|
||||
String::from("Delete key?"),
|
||||
Self::callback_delete_ssh_key,
|
||||
Self::callback_nothing_to_do,
|
||||
));
|
||||
}
|
||||
'h' | 'H' => {
|
||||
// Show help
|
||||
self.popup = Some(Popup::Help);
|
||||
|
||||
@@ -544,6 +544,16 @@ impl SetupActivity {
|
||||
Span::raw(" "),
|
||||
Span::raw("Delete entry"),
|
||||
])),
|
||||
ListItem::new(Spans::from(vec![
|
||||
Span::styled(
|
||||
"<CTRL+E>",
|
||||
Style::default()
|
||||
.fg(Color::Cyan)
|
||||
.add_modifier(Modifier::BOLD),
|
||||
),
|
||||
Span::raw(" "),
|
||||
Span::raw("Delete entry"),
|
||||
])),
|
||||
ListItem::new(Spans::from(vec![
|
||||
Span::styled(
|
||||
"<CTRL+H>",
|
||||
|
||||
Reference in New Issue
Block a user