mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-26 22:20:19 +00:00
fix dioxus-tui tests
This commit is contained in:
parent
eb4abca022
commit
36a2c863bf
2 changed files with 5 additions and 1 deletions
|
@ -21,7 +21,7 @@ dioxus-native-core-macro = { path = "../native-core-macro", version = "^0.3.0" }
|
|||
dioxus-hot-reload = { path = "../hot-reload", optional = true }
|
||||
rink = { path = "../rink" }
|
||||
|
||||
crossterm = "0.23.0"
|
||||
crossterm = "0.26.0"
|
||||
tokio = { version = "1.15.0", features = ["full"] }
|
||||
futures = "0.3.19"
|
||||
taffy = "0.2.1"
|
||||
|
|
|
@ -47,10 +47,14 @@ fn key_down() {
|
|||
tui_ctx.inject_event(Event::Key(KeyEvent {
|
||||
code: KeyCode::Tab,
|
||||
modifiers: KeyModifiers::NONE,
|
||||
kind: crossterm::event::KeyEventKind::Press,
|
||||
state: crossterm::event::KeyEventState::NONE,
|
||||
}));
|
||||
tui_ctx.inject_event(Event::Key(KeyEvent {
|
||||
code: KeyCode::Char('a'),
|
||||
modifiers: KeyModifiers::NONE,
|
||||
kind: crossterm::event::KeyEventKind::Press,
|
||||
state: crossterm::event::KeyEventState::NONE,
|
||||
}));
|
||||
cx.render(rsx! {
|
||||
div {
|
||||
|
|
Loading…
Reference in a new issue