Skip to content

Commit

Permalink
Add tab key constant (fixes #46)
Browse files Browse the repository at this point in the history
  • Loading branch information
msanders committed Jan 17, 2020
1 parent 2a5c622 commit db64355
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,10 @@ impl _Code {
fn shift(&self) -> PyResult<Py<Code>> {
self.init_code_ref(autopilot::key::KeyCode::Shift)
}
#[getter(TAB)]
fn tab(&self) -> PyResult<Py<Code>> {
self.init_code_ref(autopilot::key::KeyCode::Tab)
}
}

/// Holds down the given key or keycode if `down` is `True`, or releases it if
Expand Down

0 comments on commit db64355

Please sign in to comment.