Updated keyname
This commit is contained in:
parent
b2e042a36b
commit
6e5e38abdc
@ -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")]{
|
||||||
|
Loading…
Reference in New Issue
Block a user