From eb8745db0999a50464ac183baa138c4e511430f2 Mon Sep 17 00:00:00 2001 From: Daniel Ebert Date: Mon, 1 Nov 2021 15:50:12 +0100 Subject: Implement key ordering for info box --- helix-view/src/keyboard.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'helix-view/src/keyboard.rs') diff --git a/helix-view/src/keyboard.rs b/helix-view/src/keyboard.rs index 26a4d6d2..810aa063 100644 --- a/helix-view/src/keyboard.rs +++ b/helix-view/src/keyboard.rs @@ -54,7 +54,7 @@ impl From for KeyModifiers { } /// Represents a key. -#[derive(Debug, PartialOrd, PartialEq, Eq, Clone, Copy, Hash)] +#[derive(Debug, PartialOrd, Ord, PartialEq, Eq, Clone, Copy, Hash)] #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] pub enum KeyCode { /// Backspace key. -- cgit v1.2.3-70-g09d2