Merge pull request #87 from Smithay/impr/derive_eq_for_modifiersstate
Derive PartialEq,Eq,Hash for ModifiersState
This commit is contained in:
commit
2d7d01e9d6
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue