diff --git a/src/overlays/keyboard.rs b/src/overlays/keyboard.rs index 92696ed..f68910c 100644 --- a/src/overlays/keyboard.rs +++ b/src/overlays/keyboard.rs @@ -371,9 +371,10 @@ static LAYOUT: Lazy = Lazy::new(Layout::load_from_disk); static MACRO_REGEX: Lazy = Lazy::new(|| Regex::new(r"^([A-Za-z0-9_-]+)(?: +(UP|DOWN))?$").unwrap()); // want panic -#[derive(Debug, Clone, Copy, Deserialize, Serialize)] +#[derive(Debug, Default, Clone, Copy, Deserialize, Serialize)] #[repr(usize)] pub enum AltModifier { + #[default] None, Shift, Ctrl,