Derive more traits for events::ModifiersState (#411)
This commit is contained in:
parent
f279b2f229
commit
4c62d71950
2 changed files with 3 additions and 1 deletions
|
|
@ -433,7 +433,7 @@ pub enum VirtualKeyCode {
|
|||
/// Represents the current state of the keyboard modifiers
|
||||
///
|
||||
/// Each field of this struct represents a modifier and is `true` if this modifier is active.
|
||||
#[derive(Default, Debug, Clone, Copy)]
|
||||
#[derive(Default, Debug, Hash, PartialEq, Eq, Clone, Copy)]
|
||||
pub struct ModifiersState {
|
||||
/// The "shift" key
|
||||
pub shift: bool,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue