Fix: click_button for windows
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
This commit is contained in:
parent
54a0f7f533
commit
78a73bba1a
1 changed files with 6 additions and 2 deletions
|
@ -31,6 +31,10 @@ pub fn type_text(text: &str) -> Result<(),()>{
|
|||
}
|
||||
|
||||
#[cfg(target_family = "windows")]
|
||||
pub fn click_tab() -> Result<(),()> {
|
||||
simulate::send(simulate::Key::Tab).map_err(|_| ())
|
||||
pub fn click_button(button: ContinueButton) -> Result<(),()> {
|
||||
let button = match button {
|
||||
ContinueButton::Tab => simulate::Key::Tab,
|
||||
ContinueButton::Enter => simulate::Key::Return,
|
||||
};
|
||||
simulate::send(button).map_err(|_| ())
|
||||
}
|
Loading…
Reference in a new issue