Skip to content

Commit

Permalink
Update autopilot to 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
msanders committed Oct 23, 2019
1 parent a4cfb85 commit 5e14707
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ crate-type = ["cdylib"]
name = "autopy"

[dependencies.autopilot]
version = "0.2.2"
version = "0.3.0"

[dependencies.pyo3]
version = "0.6.0"
Expand Down
4 changes: 2 additions & 2 deletions src/key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ fn tap(key: &PyAny, modifiers: Vec<&Modifier>, delay: Option<f64>) -> PyResult<(
if let Some(either) = py_object_to_key_code_convertible(key) {
let flags: Vec<_> = modifiers.iter().map(|x| x.flag).collect();
match either {
Left(x) => autopilot::key::tap(&x, &flags, delay_ms),
Right(x) => autopilot::key::tap(&x, &flags, delay_ms),
Left(x) => autopilot::key::tap(&x, &flags, delay_ms, delay_ms),
Right(x) => autopilot::key::tap(&x, &flags, delay_ms, delay_ms),
};
Ok(())
} else {
Expand Down

0 comments on commit 5e14707

Please sign in to comment.