Add repeat field to keyboard::Event::KeyPressed

This commit is contained in:
bbb651 2025-06-15 22:17:28 +03:00 committed by Héctor Ramón Jiménez
parent 4f6ccb78fe
commit 4108838713
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
3 changed files with 6 additions and 0 deletions

View file

@ -29,6 +29,9 @@ pub enum Event {
/// The text produced by the key press, if any.
text: Option<SmolStr>,
/// Whether the event was the result of key repeat.
repeat: bool,
},
/// A keyboard key was released.