diff --git a/crates/egui/src/data/key.rs b/crates/egui/src/data/key.rs index 449d6bd7f0d..255c1f4233f 100644 --- a/crates/egui/src/data/key.rs +++ b/crates/egui/src/data/key.rs @@ -212,6 +212,15 @@ impl Key { Self::End, Self::PageUp, Self::PageDown, + Self::CapsLock, + Self::NumLock, + Self::ScrollLock, + Self::Alt, + Self::AltGraph, + Self::Control, + Self::ControlRight, + Self::Shift, + Self::ShiftRight, Self::Copy, Self::Cut, Self::Paste, @@ -336,6 +345,17 @@ impl Key { "PageUp" => Self::PageUp, "PageDown" => Self::PageDown, + "CapsLock" => Self::CapsLock, + "NumLock" => Self::NumLock, + "ScrollLock" => Self::ScrollLock, + + "Alt" => Self::Alt, + "AltGraph" => Self::AltGraph, + "Control" => Self::Control, + "ControlRight" => Self::ControlRight, + "Shift" => Self::Shift, + "ShiftRight" => Self::ShiftRight, + "Copy" => Self::Copy, "Cut" => Self::Cut, "Paste" => Self::Paste,