seat: implement key repeat
This commit is contained in:
parent
0e1be7544f
commit
4b4f05d153
10 changed files with 153 additions and 19 deletions
|
|
@ -213,6 +213,9 @@ impl PhysicalKeyboardState {
|
|||
return;
|
||||
}
|
||||
}
|
||||
KeyState::Repeated => {
|
||||
return;
|
||||
}
|
||||
}
|
||||
let state = &mut *self.state.borrow_mut();
|
||||
state.map.state_machine.handle_key(
|
||||
|
|
@ -222,6 +225,7 @@ impl PhysicalKeyboardState {
|
|||
match key_state {
|
||||
KeyState::Released => Direction::Up,
|
||||
KeyState::Pressed => Direction::Down,
|
||||
KeyState::Repeated => unreachable!(),
|
||||
},
|
||||
);
|
||||
self.events.append(&mut inner.event_stash);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue