From ee1aa6c999dcefead9b5906691c5d55f020f6a31 Mon Sep 17 00:00:00 2001 From: Mikko Vanhatalo Date: Mon, 30 Mar 2015 11:52:18 +0300 Subject: [PATCH] Fixed code_value values for Equal & KpEqual --- components/script/dom/keyboardevent.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/script/dom/keyboardevent.rs b/components/script/dom/keyboardevent.rs index bd531cb61f2..d9ca779edc3 100644 --- a/components/script/dom/keyboardevent.rs +++ b/components/script/dom/keyboardevent.rs @@ -320,7 +320,7 @@ fn code_value(key: constellation_msg::Key) -> &'static str { constellation_msg::Key::Num8 => "Digit8", constellation_msg::Key::Num9 => "Digit9", constellation_msg::Key::Semicolon => "Semicolon", - constellation_msg::Key::Equal => "Equals", + constellation_msg::Key::Equal => "Equal", constellation_msg::Key::A => "KeyA", constellation_msg::Key::B => "KeyB", constellation_msg::Key::C => "KeyC", @@ -414,7 +414,7 @@ fn code_value(key: constellation_msg::Key) -> &'static str { constellation_msg::Key::KpSubtract => "NumpadSubtract", constellation_msg::Key::KpAdd => "NumpadAdd", constellation_msg::Key::KpEnter => "NumpadEnter", - constellation_msg::Key::KpEqual => "NumpadEquals", + constellation_msg::Key::KpEqual => "NumpadEqual", constellation_msg::Key::LeftShift | constellation_msg::Key::RightShift => "Shift", constellation_msg::Key::LeftControl | constellation_msg::Key::RightControl => "Control", constellation_msg::Key::LeftAlt | constellation_msg::Key::RightAlt => "Alt",