Merge pull request #87 from Smithay/impr/derive_eq_for_modifiersstate

Derive PartialEq,Eq,Hash for ModifiersState
This commit is contained in:
Victor Brekenfeld 2018-03-29 21:12:38 +02:00 committed by GitHub
commit 2d7d01e9d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
/// (like caps lock).
#[derive(Copy, Clone, Debug)]
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
pub struct ModifiersState {
/// The "control" key
pub ctrl: bool,