Fix compile error of testcase

This commit is contained in:
Asura committed 2022-07-19 16:15:57 +08:00
1 parent cbdc28ee20
commit d07ef7af8a
2 files changed
+2 -3

No files matched your search

+1 -1
View File
@@ -834,7 +834,7 @@ mod test {
// set key/char base on char
let mut evt = KeyEvent::new();
evt.set_chr(66);
evt.mode = ProtobufEnum::new(KeyboardMode::Legacy);
evt.mode = KeyboardMode::Legacy.into();
evt.modifiers.push(ControlKey::CapsLock.into());