working on keysym

This commit is contained in:
open-trade
2022-01-07 18:03:55 +08:00
parent 9df1fcb783
commit 26d161f827
7 changed files with 48 additions and 12 deletions

View File

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