seat: implement key repeat
This commit is contained in:
parent
0e1be7544f
commit
4b4f05d153
10 changed files with 153 additions and 19 deletions
|
|
@ -168,7 +168,7 @@ impl UnicodeInput {
|
|||
|
||||
impl InputMethodKeyboardGrab for SimpleIm {
|
||||
fn on_key(&self, _time_usec: u64, key: u32, state: KeyState, kb_state: &KeyboardState) -> bool {
|
||||
if state != KeyState::Pressed {
|
||||
if state == KeyState::Released {
|
||||
return true;
|
||||
}
|
||||
let Some(con) = self.con.get() else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue