Implement Ord/PartialOrd for ModifiersState
This commit is contained in:
parent
52b7205b75
commit
c0db53a516
1 changed files with 1 additions and 1 deletions
|
|
@ -1682,7 +1682,7 @@ bitflags! {
|
|||
/// Represents the current state of the keyboard modifiers
|
||||
///
|
||||
/// Each flag represents a modifier and is set if this modifier is active.
|
||||
#[derive(Default, Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||
#[derive(Default, Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||
pub struct ModifiersState: u32 {
|
||||
/// The "shift" key.
|
||||
const SHIFT = 0b100;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue