Fix compile error of testcase

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

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());