diff options
author | 2024-02-20 01:31:04 +0100 | |
---|---|---|
committer | 2024-02-20 01:31:04 +0100 | |
commit | b0d8da9fa607dbb9ee0a62738435ec921e624f3f (patch) | |
tree | 9d6cf32ae665b7a36fb18080cd484651ab8a5bdb /core/src/keyboard | |
parent | 49b3a714cc718731d3b09e9711bf4ec769a78109 (diff) | |
download | iced-b0d8da9fa607dbb9ee0a62738435ec921e624f3f.tar.gz iced-b0d8da9fa607dbb9ee0a62738435ec921e624f3f.tar.bz2 iced-b0d8da9fa607dbb9ee0a62738435ec921e624f3f.zip |
Implement `PartialOrd`, `Ord`, and `Hash` for `keyboard::Modifiers`
Diffstat (limited to 'core/src/keyboard')
-rw-r--r-- | core/src/keyboard/modifiers.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/keyboard/modifiers.rs b/core/src/keyboard/modifiers.rs index 479fe6fb..e531510f 100644 --- a/core/src/keyboard/modifiers.rs +++ b/core/src/keyboard/modifiers.rs @@ -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; |