fix LogView exit

This commit is contained in:
rabite 2019-05-28 15:06:00 +02:00
parent 3a2130d609
commit 16866e5aeb
1 changed files with 3 additions and 1 deletions

View File

@ -87,7 +87,9 @@ pub trait FoldableWidgetExt {
fn on_refresh(&mut self) -> HResult<()> { Ok(()) }
fn render_header(&self) -> HResult<String> { Ok("".to_string()) }
fn render_footer(&self) -> HResult<String> { Ok("".to_string()) }
fn on_key(&mut self, _key: Key) -> HResult<()> { Ok(()) }
fn on_key(&mut self, key: Key) -> HResult<()> {
HError::undefined_key(key)?
}
fn render(&self) -> Vec<String> { vec![] }
}