aboutsummaryrefslogtreecommitdiff
path: root/src/parser/types.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser/types.rs')
-rw-r--r--src/parser/types.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parser/types.rs b/src/parser/types.rs
index 66b6561..0371e1b 100644
--- a/src/parser/types.rs
+++ b/src/parser/types.rs
@@ -18,6 +18,8 @@ pub enum Sequence {
bitflags! {
/// A key modifiers.
+ #[derive(Copy, Clone, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
+ #[repr(transparent)]
pub struct KeyModifiers: u8 {
const SHIFT = 0b0000_0001;
const CONTROL = 0b0000_0010;