Skip to content

Commit

Permalink
hotfix: Add missing map of keyboard codes
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 committed Jan 21, 2025
1 parent 621f105 commit ce87cef
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions crates/elements/src/events/keyboard.rs
Original file line number Diff line number Diff line change
Expand Up @@ -291,18 +291,18 @@ pub fn map_winit_physical_key(key: &keyboard::PhysicalKey) -> Code {
keyboard::KeyCode::BracketRight => Code::BracketRight,
keyboard::KeyCode::ShiftLeft => Code::ShiftLeft,
keyboard::KeyCode::Meta => Code::MetaLeft,
keyboard::KeyCode::MediaSelect => Code::Unidentified,
keyboard::KeyCode::MediaStop => Code::Unidentified,
keyboard::KeyCode::Minus => Code::Unidentified,
keyboard::KeyCode::Period => Code::Unidentified,
keyboard::KeyCode::Power => Code::Unidentified,
keyboard::KeyCode::MediaSelect => Code::MediaSelect,
keyboard::KeyCode::MediaStop => Code::MediaStop,
keyboard::KeyCode::Minus => Code::Minus,
keyboard::KeyCode::Period => Code::Period,
keyboard::KeyCode::Power => Code::Power,
keyboard::KeyCode::AltRight => Code::AltRight,
keyboard::KeyCode::ControlLeft => Code::ControlLeft,
keyboard::KeyCode::ControlRight => Code::ControlRight,
keyboard::KeyCode::ShiftRight => Code::ShiftRight,
keyboard::KeyCode::Semicolon => Code::Semicolon,
keyboard::KeyCode::Slash => Code::Unidentified,
keyboard::KeyCode::Sleep => Code::Unidentified,
keyboard::KeyCode::Slash => Code::Slash,
keyboard::KeyCode::Sleep => Code::Sleep,
keyboard::KeyCode::Tab => Code::Tab,
keyboard::KeyCode::AudioVolumeUp => Code::AudioVolumeUp,
keyboard::KeyCode::IntlYen => Code::IntlYen,
Expand Down

0 comments on commit ce87cef

Please sign in to comment.