diff options
author | Josh Matthews <josh@joshmatthews.net> | 2016-06-30 04:27:26 -0400 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2016-07-05 18:06:42 -0400 |
commit | 04ce86c08c3a0c3a865f840e95f8f072dfa41b82 (patch) | |
tree | 01c4675aa11e9b4a95548e17d13798d6da25214d /components/script/textinput.rs | |
parent | 87c77725279ba3f1b612e27fccf353c81eae17b8 (diff) | |
download | servo-04ce86c08c3a0c3a865f840e95f8f072dfa41b82.tar.gz servo-04ce86c08c3a0c3a865f840e95f8f072dfa41b82.zip |
Associate logical and physical keypresses together to support non-QWERTY keyboards.
Diffstat (limited to 'components/script/textinput.rs')
-rw-r--r-- | components/script/textinput.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/textinput.rs b/components/script/textinput.rs index a56bd983f34..1a3a9633975 100644 --- a/components/script/textinput.rs +++ b/components/script/textinput.rs @@ -9,7 +9,7 @@ use dom::bindings::str::DOMString; use dom::keyboardevent::{KeyboardEvent, key_value}; use msg::constellation_msg::{ALT, CONTROL, SHIFT, SUPER}; use msg::constellation_msg::{Key, KeyModifiers}; -use std::borrow::ToOwned; +use std::borrow::{ToOwned, Borrow}; use std::cmp::{max, min}; use std::default::Default; use std::ops::Range; @@ -510,7 +510,7 @@ impl<T: ClipboardProvider> TextInput<T> { KeyReaction::DispatchInput }, _ if is_printable_key(key) => { - self.insert_string(key_value(key, mods)); + self.insert_string::<&str>(key_value(None, key, mods).borrow()); KeyReaction::DispatchInput } Key::Space => { |