diff options
Diffstat (limited to 'helix-view/src')
-rw-r--r-- | helix-view/src/graphics.rs | 1 | ||||
-rw-r--r-- | helix-view/src/keyboard.rs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/helix-view/src/graphics.rs b/helix-view/src/graphics.rs index e813fb56..046db86a 100644 --- a/helix-view/src/graphics.rs +++ b/helix-view/src/graphics.rs @@ -352,6 +352,7 @@ bitflags! { /// /// let m = Modifier::BOLD | Modifier::ITALIC; /// ``` + #[derive(PartialEq, Eq, Debug, Clone, Copy)] pub struct Modifier: u16 { const BOLD = 0b0000_0000_0001; const DIM = 0b0000_0000_0010; diff --git a/helix-view/src/keyboard.rs b/helix-view/src/keyboard.rs index 04a9922a..080bce8d 100644 --- a/helix-view/src/keyboard.rs +++ b/helix-view/src/keyboard.rs @@ -2,6 +2,7 @@ use bitflags::bitflags; bitflags! { /// Represents key modifiers (shift, control, alt). + #[derive(Debug, PartialOrd, Ord, PartialEq, Eq, Clone, Copy, Hash)] pub struct KeyModifiers: u8 { const SHIFT = 0b0000_0001; const CONTROL = 0b0000_0010; |