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 8c23f76 commit ed45fdd
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions crates/egui/src/data/key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit ed45fdd

Please sign in to comment.