Skip to content

Commit

Permalink
Update key.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rustbasic authored Nov 24, 2024
1 parent b1745a0 commit 8c23f76
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions crates/egui/src/data/key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,17 @@ pub enum Key {
PageUp,
PageDown,

CapsLock,
NumLock,
ScrollLock,

Alt,
AltGraph,
Control,
ControlRight,
Shift,
ShiftRight,

Copy,
Cut,
Paste,
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 8c23f76

Please sign in to comment.