diff options
author | Ryan Leavengood <leavengood@gmail.com> | 2015-03-26 14:06:57 -0400 |
---|---|---|
committer | Ryan Leavengood <leavengood@gmail.com> | 2015-03-26 14:06:57 -0400 |
commit | 0d0be2aa1dd330d53607498d25d398211c44a50c (patch) | |
tree | de627d539b541842f95d2fe4d9c1cf9c98365b6d /components/script/dom/keyboardevent.rs | |
parent | 265f313de3de12ee137073d4dfde5c35a33c789c (diff) | |
download | servo-0d0be2aa1dd330d53607498d25d398211c44a50c.tar.gz servo-0d0be2aa1dd330d53607498d25d398211c44a50c.zip |
Fix #5374: Use correct codes for alphabetic chars
Diffstat (limited to 'components/script/dom/keyboardevent.rs')
-rw-r--r-- | components/script/dom/keyboardevent.rs | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/components/script/dom/keyboardevent.rs b/components/script/dom/keyboardevent.rs index 025c64ac59c..9d1a7d5245a 100644 --- a/components/script/dom/keyboardevent.rs +++ b/components/script/dom/keyboardevent.rs @@ -319,32 +319,32 @@ fn code_value(key: constellation_msg::Key) -> &'static str { constellation_msg::Key::Num9 => "Digit9", constellation_msg::Key::Semicolon => "Semicolon", constellation_msg::Key::Equal => "Equals", - constellation_msg::Key::A => "Key::A", - constellation_msg::Key::B => "Key::B", - constellation_msg::Key::C => "Key::C", - constellation_msg::Key::D => "Key::D", - constellation_msg::Key::E => "Key::E", - constellation_msg::Key::F => "Key::F", - constellation_msg::Key::G => "Key::G", - constellation_msg::Key::H => "Key::H", - constellation_msg::Key::I => "Key::I", - constellation_msg::Key::J => "Key::J", - constellation_msg::Key::K => "Key::K", - constellation_msg::Key::L => "Key::L", - constellation_msg::Key::M => "Key::M", - constellation_msg::Key::N => "Key::N", - constellation_msg::Key::O => "Key::O", - constellation_msg::Key::P => "Key::P", - constellation_msg::Key::Q => "Key::Q", - constellation_msg::Key::R => "Key::R", - constellation_msg::Key::S => "Key::S", - constellation_msg::Key::T => "Key::T", - constellation_msg::Key::U => "Key::U", - constellation_msg::Key::V => "Key::V", - constellation_msg::Key::W => "Key::W", - constellation_msg::Key::X => "Key::X", - constellation_msg::Key::Y => "Key::Y", - constellation_msg::Key::Z => "Key::Z", + constellation_msg::Key::A => "KeyA", + constellation_msg::Key::B => "KeyB", + constellation_msg::Key::C => "KeyC", + constellation_msg::Key::D => "KeyD", + constellation_msg::Key::E => "KeyE", + constellation_msg::Key::F => "KeyF", + constellation_msg::Key::G => "KeyG", + constellation_msg::Key::H => "KeyH", + constellation_msg::Key::I => "KeyI", + constellation_msg::Key::J => "KeyJ", + constellation_msg::Key::K => "KeyK", + constellation_msg::Key::L => "KeyL", + constellation_msg::Key::M => "KeyM", + constellation_msg::Key::N => "KeyN", + constellation_msg::Key::O => "KeyO", + constellation_msg::Key::P => "KeyP", + constellation_msg::Key::Q => "KeyQ", + constellation_msg::Key::R => "KeyR", + constellation_msg::Key::S => "KeyS", + constellation_msg::Key::T => "KeyT", + constellation_msg::Key::U => "KeyU", + constellation_msg::Key::V => "KeyV", + constellation_msg::Key::W => "KeyW", + constellation_msg::Key::X => "KeyX", + constellation_msg::Key::Y => "KeyY", + constellation_msg::Key::Z => "KeyZ", constellation_msg::Key::LeftBracket => "BracketLeft", constellation_msg::Key::Backslash => "Backslash", constellation_msg::Key::RightBracket => "BracketRight", |