diff --git a/src/rdev.rs b/src/rdev.rs index 277be3b0..a262987a 100644 --- a/src/rdev.rs +++ b/src/rdev.rs @@ -97,7 +97,7 @@ impl std::error::Error for SimulateError {} /// a different value too. /// Careful, on Windows KpReturn does not exist, it' s strictly equivalent to Return, also Keypad keys /// get modified if NumLock is Off and ARE pagedown and so on. -#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] +#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash, PartialOrd, Ord)] #[cfg_attr(feature = "serialize", derive(Serialize, Deserialize))] pub enum Key { /// Alt key on Linux and Windows (option key on macOS)