diff options
author | Michael Wu <mwu@mozilla.com> | 2015-04-06 19:27:56 -0400 |
---|---|---|
committer | Michael Wu <mwu@mozilla.com> | 2015-06-19 18:42:48 -0400 |
commit | 675267b7822d2d6c30c0e36fc22e0191b741b973 (patch) | |
tree | 640b22869e8a7eb7d5657df3074f0b0ccd528c29 /components/script/textinput.rs | |
parent | a256f39796270cd3a5f40f33eaa4e407117b0cc6 (diff) | |
download | servo-675267b7822d2d6c30c0e36fc22e0191b741b973.tar.gz servo-675267b7822d2d6c30c0e36fc22e0191b741b973.zip |
Upgrade to SM 39
Diffstat (limited to 'components/script/textinput.rs')
-rw-r--r-- | components/script/textinput.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/components/script/textinput.rs b/components/script/textinput.rs index 8d5668e1d04..6c485ae2b96 100644 --- a/components/script/textinput.rs +++ b/components/script/textinput.rs @@ -5,7 +5,6 @@ //! Common handling of keyboard input and state management for text input controls use clipboard_provider::ClipboardProvider; -use dom::bindings::js::JSRef; use dom::keyboardevent::{KeyboardEvent, KeyboardEventHelpers, key_value}; use msg::constellation_msg::{SHIFT, CONTROL, ALT, SUPER}; use msg::constellation_msg::{Key, KeyModifiers}; @@ -296,7 +295,7 @@ impl<T: ClipboardProvider> TextInput<T> { } /// Process a given `KeyboardEvent` and return an action for the caller to execute. - pub fn handle_keydown(&mut self, event: JSRef<KeyboardEvent>) -> KeyReaction { + pub fn handle_keydown(&mut self, event: &KeyboardEvent) -> KeyReaction { if let Some(key) = event.get_key() { self.handle_keydown_aux(key, event.get_key_modifiers()) } else { |