Implement PartialOrd, Ord, and Hash for keyboard::Modifiers
This commit is contained in:
parent
49b3a714cc
commit
b0d8da9fa6
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@ use bitflags::bitflags;
|
|||
|
||||
bitflags! {
|
||||
/// The current state of the keyboard modifiers.
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||
pub struct Modifiers: u32{
|
||||
/// The "shift" key.
|
||||
const SHIFT = 0b100;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue