summaryrefslogtreecommitdiffstats
path: root/src/hbox.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/hbox.rs')
-rw-r--r--src/hbox.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/hbox.rs b/src/hbox.rs
index 8ad23c6..391aae0 100644
--- a/src/hbox.rs
+++ b/src/hbox.rs
@@ -210,4 +210,8 @@ impl<T> Widget for HBox<T> where T: Widget + PartialEq {
self.active_widget_mut()?.on_event(event)?;
Ok(())
}
+
+ fn on_key(&mut self, key: termion::event::Key) -> HResult<()> {
+ self.active_widget_mut()?.on_key(key)
+ }
}