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 2e45092 commit a34ea8f
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions crates/egui/src/data/key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ pub enum Key {
PageUp,
PageDown,

CapsLock,
NumLock,
ScrollLock,

Alt,
AltRight,
Control,
ControlRight,
Shift,
ShiftRight,

CapsLock,
NumLock,
ScrollLock,

Copy,
Cut,
Paste,
Expand Down Expand Up @@ -66,7 +66,7 @@ pub enum Key {
// `]`
CloseBracket,

/// \`, also known as "backquote" or "grave"
/// Also known as "backquote" or "grave"
Backtick,

/// `-`
Expand Down Expand Up @@ -212,15 +212,18 @@ impl Key {
Self::End,
Self::PageUp,
Self::PageDown,
Self::CapsLock,
Self::NumLock,
Self::ScrollLock,
// Alt Ctrl Shift
Self::Alt,
Self::AltRight,
Self::Control,
Self::ControlRight,
Self::Shift,
Self::ShiftRight,
// Lock
Self::CapsLock,
Self::NumLock,
Self::ScrollLock,
// Copy Cut Paste
Self::Copy,
Self::Cut,
Self::Paste,
Expand Down

0 comments on commit a34ea8f

Please sign in to comment.