Use full-width window for key_codes example

This commit is contained in:
Alexandre Bury 2017-10-10 17:50:06 -07:00
parent c64e7dd7b3
commit 976728fd25

View File

@ -7,7 +7,7 @@ use cursive::event::{Event, EventResult};
fn main() {
let mut siv = Cursive::new();
siv.add_layer(KeyCodeView::new(10).fixed_size((70, 10)));
siv.add_layer(KeyCodeView::new(10).full_width().fixed_height(10));
siv.run();
}