Skip to content

Commit

Permalink
chore(deps): update crossterm to v0.25
Browse files Browse the repository at this point in the history
  • Loading branch information
max-niederman committed Aug 14, 2022
1 parent ea43969 commit e335cdc
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 29 deletions.
72 changes: 44 additions & 28 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ edition = "2018"
[dependencies]
structopt = "0.3"
dirs = "4.0"
crossterm = "0.23"
crossterm = "0.25"
rust-embed = "6.2"
toml = "0.5"

Expand Down
5 changes: 5 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,13 @@ fn run_test(config: &Config, mut test: Test) -> crossterm::Result<bool> {
Event::Key(KeyEvent {
code: KeyCode::Char('c'),
modifiers: KeyModifiers::CONTROL,
..
}) => return Ok(false),

Event::Key(KeyEvent {
code: KeyCode::Esc,
modifiers: KeyModifiers::NONE,
..
}) => break,

Event::Key(key) => {
Expand Down Expand Up @@ -245,15 +247,18 @@ fn main() -> crossterm::Result<()> {
Event::Key(KeyEvent {
code: KeyCode::Char('r'),
modifiers: KeyModifiers::NONE,
..
}) => break,

Event::Key(KeyEvent {
code: KeyCode::Char('q'),
modifiers: KeyModifiers::NONE,
..
})
| Event::Key(KeyEvent {
code: KeyCode::Char('c'),
modifiers: KeyModifiers::CONTROL,
..
}) => break 'tests,

_ => (),
Expand Down

0 comments on commit e335cdc

Please sign in to comment.