Beginning research

This commit is contained in:
Mikayla Maki 2022-07-12 18:06:34 -07:00
parent efad2a9ccd
commit 2ca340b9f1
3 changed files with 23 additions and 9 deletions

View file

@ -360,14 +360,22 @@ impl Element for TerminalEl {
cx.dispatch_action(ScrollTerminal(vertical_scroll.round() as i32));
})
.is_some(),
Event::KeyDown(KeyDownEvent {
input: Some(input), ..
}) => cx
.is_parent_view_focused()
.then(|| {
cx.dispatch_action(Input(input.to_string()));
})
.is_some(),
Event::KeyDown(
e @ KeyDownEvent {
input: Some(input), ..
},
) => {
dbg!(e);
cx.is_parent_view_focused()
.then(|| {
cx.dispatch_action(Input(input.to_string()));
})
.is_some()
}
Event::KeyDown(e) => {
dbg!(e);
false
}
_ => false,
}
}