revert keysym back, enigo's Layout can do this

This commit is contained in:
rustdesk
2022-01-09 21:05:00 +08:00
parent a0c704f36e
commit 3f56c82c7b
6 changed files with 10 additions and 45 deletions

View File

@@ -181,9 +181,6 @@ impl MouseControllable for Enigo {
}
}
fn keysequence<'a>(key: Key) -> Cow<'a, str> {
if let Key::KeySym(sym) = key {
return Cow::Owned("".to_owned());
}
if let Key::Layout(c) = key {
return Cow::Owned(format!("U{:X}", c as u32));
}