wayland: keyboard: do not borrow borrowed keysym when re-pressing

The value is already a &Keysym.
This commit is contained in:
Richard Acayan 2024-07-24 22:29:20 -04:00
parent ab033c1f21
commit 397323b582

View file

@ -218,7 +218,7 @@ impl Keyboard for VirtualKeyboard {
for sym in &self.pressed {
if *sym != Keysym::NoSymbol {
let code = *self.keycodes.get(&sym).unwrap();
let code = *self.keycodes.get(sym).unwrap();
self.vk.key(0, code as u32, 1);
}
}