|
|
@ -80,14 +80,14 @@ impl Component for Popup {
|
|
|
|
modifiers: KeyModifiers::CONTROL,
|
|
|
|
modifiers: KeyModifiers::CONTROL,
|
|
|
|
} => {
|
|
|
|
} => {
|
|
|
|
self.scroll(self.size.1 as usize / 2, true);
|
|
|
|
self.scroll(self.size.1 as usize / 2, true);
|
|
|
|
return EventResult::Consumed(None);
|
|
|
|
EventResult::Consumed(None)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
KeyEvent {
|
|
|
|
KeyEvent {
|
|
|
|
code: KeyCode::Char('u'),
|
|
|
|
code: KeyCode::Char('u'),
|
|
|
|
modifiers: KeyModifiers::CONTROL,
|
|
|
|
modifiers: KeyModifiers::CONTROL,
|
|
|
|
} => {
|
|
|
|
} => {
|
|
|
|
self.scroll(self.size.1 as usize / 2, false);
|
|
|
|
self.scroll(self.size.1 as usize / 2, false);
|
|
|
|
return EventResult::Consumed(None);
|
|
|
|
EventResult::Consumed(None)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
_ => self.contents.handle_event(event, cx),
|
|
|
|
_ => self.contents.handle_event(event, cx),
|
|
|
|
}
|
|
|
|
}
|
|
|
|