Fix when ESC is pressed while adding contact.
@@ -721,8 +721,10 @@ impl<B: Backend> Component<B> for SendTab {
}
fn on_esc(&mut self, _: &mut AppState) {
+ self.edit_contact_mode = ContactInputMode::None;
self.send_input_mode = SendInputMode::None;
self.show_contacts = false;
+ self.show_edit_contact = false;
}
fn on_backspace(&mut self, _app_state: &mut AppState) {
