Implement Default for keyboard::ModifiersState

This commit is contained in:
Héctor Ramón Jiménez 2020-03-10 06:46:58 +01:00
parent 4e0e50ae27
commit ed7c327b48

View File

@ -1,5 +1,5 @@
/// The current state of the keyboard modifiers.
#[derive(Debug, Clone, Copy, PartialEq)]
#[derive(Debug, Clone, Copy, PartialEq, Default)]
pub struct ModifiersState {
/// Whether a shift key is pressed
pub shift: bool,