virtual_keyboard: Fix desynced modifiers state

This ensures that keymap switches leave modifiers and virtual keys in a known state.
This commit is contained in:
Dorota Czaplejewicz
2020-07-01 11:36:47 +00:00
parent 762e12431d
commit 9512fd8436
6 changed files with 65 additions and 15 deletions

View File

@ -43,7 +43,7 @@ bitflags!{
/// When the submitted actions of keys need to be tracked,
/// they need a stable, comparable ID
#[derive(PartialEq)]
#[derive(Clone, PartialEq)]
pub struct KeyStateId(*const KeyState);
#[derive(Debug, Clone)]