Derive PartialEq,Eq,Hash for ModifiersState

This commit is contained in:
Drakulix 2018-03-25 19:58:13 +02:00
parent f927d98720
commit 7fb89ac924
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ pub use xkbcommon::xkb::{keysyms, Keysym};
/// ///
/// For some modifiers, this means that the key is currently pressed, others are toggled /// For some modifiers, this means that the key is currently pressed, others are toggled
/// (like caps lock). /// (like caps lock).
#[derive(Copy, Clone, Debug)] #[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub struct ModifiersState { pub struct ModifiersState {
/// The "control" key /// The "control" key
pub ctrl: bool, pub ctrl: bool,