Merge pull request #52 from iMplode-nZ/repeat

Added repeat property to KeyboardEvent.
This commit is contained in:
Pauan 2021-09-02 22:25:00 +02:00 committed by GitHub
commit fac7851cdd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -120,6 +120,7 @@ macro_rules! make_keyboard_event {
#[inline] pub fn ctrl_key(&self) -> bool { self.event.ctrl_key() || self.event.meta_key() }
#[inline] pub fn shift_key(&self) -> bool { self.event.shift_key() }
#[inline] pub fn alt_key(&self) -> bool { self.event.alt_key() }
#[inline] pub fn repeat(&self) -> bool { self.event.repeat() }
}
};
}