Skip to content

Commit

Permalink
Update key.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rustbasic authored Dec 4, 2024
1 parent 5a2110d commit 7b3d7ad
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions crates/egui/src/data/key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ pub enum Key {
PageUp,
PageDown,

Alt,
AltLeft,
AltRight,
Control,
ControlLeft,
ControlRight,
Shift,
ShiftLeft,
ShiftRight,

CapsLock,
Expand Down Expand Up @@ -213,11 +213,11 @@ impl Key {
Self::PageUp,
Self::PageDown,
// Alt Ctrl Shift
Self::Alt,
Self::AltLeft,
Self::AltRight,
Self::Control,
Self::ControlLeft,
Self::ControlRight,
Self::Shift,
Self::ShiftLeft,
Self::ShiftRight,
// Lock
Self::CapsLock,
Expand Down Expand Up @@ -352,11 +352,11 @@ impl Key {
"NumLock" => Self::NumLock,
"ScrollLock" => Self::ScrollLock,

"Alt" => Self::Alt,
"AltLeft" => Self::AltLeft,
"AltRight" => Self::AltRight,
"Control" => Self::Control,
"ControlLeft" => Self::ControlLeft,
"ControlRight" => Self::ControlRight,
"Shift" => Self::Shift,
"ShiftLeft" => Self::ShiftLeft,
"ShiftRight" => Self::ShiftRight,

"Copy" => Self::Copy,
Expand Down Expand Up @@ -512,11 +512,11 @@ impl Key {
Self::NumLock => "NumLock",
Self::ScrollLock => "ScrollLock",

Self::Alt => "Alt",
Self::AltLeft => "AltLeft",
Self::AltRight => "AltRight",
Self::Control => "Control",
Self::ControlLeft => "ControlLeft",
Self::ControlRight => "ControlRight",
Self::Shift => "Shift",
Self::ShiftLeft => "ShiftLeft",
Self::ShiftRight => "ShiftRight",

Self::Copy => "Copy",
Expand Down

0 comments on commit 7b3d7ad

Please sign in to comment.