|
|
@ -57,9 +57,7 @@ impl Component for Popup {
|
|
|
|
| KeyEvent {
|
|
|
|
| KeyEvent {
|
|
|
|
code: KeyCode::Char('c'),
|
|
|
|
code: KeyCode::Char('c'),
|
|
|
|
modifiers: KeyModifiers::CONTROL,
|
|
|
|
modifiers: KeyModifiers::CONTROL,
|
|
|
|
} => {
|
|
|
|
} => close_fn,
|
|
|
|
return close_fn;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
_ => self.contents.handle_event(event, cx),
|
|
|
|
_ => self.contents.handle_event(event, cx),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// for some events, we want to process them but send ignore, specifically all input except
|
|
|
|
// for some events, we want to process them but send ignore, specifically all input except
|
|
|
|