diff --git a/receiver/src/keyboard.rs b/receiver/src/keyboard.rs index 0c1af10..f9299d1 100644 --- a/receiver/src/keyboard.rs +++ b/receiver/src/keyboard.rs @@ -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(|_| ()) } \ No newline at end of file