diff --git a/egui/src/data/input.rs b/egui/src/data/input.rs index 61d9c3f9..6523c244 100644 --- a/egui/src/data/input.rs +++ b/egui/src/data/input.rs @@ -170,6 +170,7 @@ impl Modifiers { /// Many keys are omitted because they are not always physical keys (depending on keyboard language), e.g. `;` and `ยง`, /// and are therefor unsuitable as keyboard shortcuts if you want your app to be portable. #[derive(Clone, Copy, Debug, Eq, Ord, PartialEq, PartialOrd, Hash)] +#[cfg_attr(feature = "persistence", derive(serde::Deserialize, serde::Serialize))] pub enum Key { ArrowDown, ArrowLeft,