From 02bbb47e0ce9e36e4fee52c5f24d5e523789e5ce Mon Sep 17 00:00:00 2001 From: galister <22305755+galister@users.noreply.github.com> Date: Sat, 4 Jan 2025 22:05:43 +0900 Subject: [PATCH] default AltLayout is None --- src/overlays/keyboard.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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,