Merge pull request #2991 from bbb651/keyboard-event-repeat

Add `repeat` field to `keyboard::Event::KeyPressed`
This commit is contained in:
Héctor 2025-11-29 02:01:52 +01:00 committed by GitHub
commit 6aba73a13f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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.