From c99ff0c3dd5cf550efda904fb9ec1f2af766ebfd Mon Sep 17 00:00:00 2001 From: async-rustacean Date: Sun, 21 May 2023 11:22:47 +0800 Subject: [PATCH] Update Key enum with implementations of PartialOrd and Ord traits. --- src/rdev.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)