diff --git a/crates/egui/src/data/key.rs b/crates/egui/src/data/key.rs index c43d1c5685d..449d6bd7f0d 100644 --- a/crates/egui/src/data/key.rs +++ b/crates/egui/src/data/key.rs @@ -25,6 +25,17 @@ pub enum Key { PageUp, PageDown, + CapsLock, + NumLock, + ScrollLock, + + Alt, + AltGraph, + Control, + ControlRight, + Shift, + ShiftRight, + Copy, Cut, Paste, @@ -474,6 +485,17 @@ impl Key { Self::PageUp => "PageUp", Self::PageDown => "PageDown", + Self::CapsLock => "CapsLock", + Self::NumLock => "NumLock", + Self::ScrollLock => "ScrollLock", + + Self::Alt => "Alt", + Self::AltGraph => "AltGraph", + Self::Control => "Control", + Self::ControlRight => "ControlRight", + Self::Shift => "Shift", + Self::ShiftRight => "ShiftRight", + Self::Copy => "Copy", Self::Cut => "Cut", Self::Paste => "Paste",