Updated keyname

This commit is contained in:
Elizabeth Cray 2023-07-24 00:16:33 -04:00
parent b2e042a36b
commit 6e5e38abdc

View File

@ -26,9 +26,9 @@ fn type_str(input: String) {
// TODO: Set the Command/Alt key configured by user // TODO: Set the Command/Alt key configured by user
#[cfg(target_os = "macos")] { #[cfg(target_os = "macos")] {
enigo.key_down(Key::Command); enigo.key_down(Key::Meta);
enigo.key_click(Key::Tab); enigo.key_click(Key::Tab);
enigo.key_up(Key::Command); enigo.key_up(Key::Meta);
} }
#[cfg(target_os = "windows")] { #[cfg(target_os = "windows")] {
@ -52,9 +52,9 @@ fn type_str(input: String) {
} }
#[cfg(target_os = "macos")]{ #[cfg(target_os = "macos")]{
enigo.key_down(Key::Command); enigo.key_down(Key::Meta);
enigo.key_click(Key::Layout('v')); enigo.key_click(Key::Layout('v'));
enigo.key_up(Key::Command); enigo.key_up(Key::Meta);
} }
#[cfg(target_os = "linux")]{ #[cfg(target_os = "linux")]{