aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2016-06-30 04:27:26 -0400
committerJosh Matthews <josh@joshmatthews.net>2016-07-05 18:06:42 -0400
commit04ce86c08c3a0c3a865f840e95f8f072dfa41b82 (patch)
tree01c4675aa11e9b4a95548e17d13798d6da25214d /components/script/script_thread.rs
parent87c77725279ba3f1b612e27fccf353c81eae17b8 (diff)
downloadservo-04ce86c08c3a0c3a865f840e95f8f072dfa41b82.tar.gz
servo-04ce86c08c3a0c3a865f840e95f8f072dfa41b82.zip
Associate logical and physical keypresses together to support non-QWERTY keyboards.
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r--components/script/script_thread.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs
index 2367ecc0fd9..8e45ba31b8a 100644
--- a/components/script/script_thread.rs
+++ b/components/script/script_thread.rs
@@ -1937,12 +1937,12 @@ impl ScriptThread {
document.r().handle_touchpad_pressure_event(self.js_runtime.rt(), point, pressure, phase);
}
- KeyEvent(key, state, modifiers) => {
+ KeyEvent(key, state, modifiers, ch) => {
let document = match self.root_browsing_context().find(pipeline_id) {
Some(browsing_context) => browsing_context.active_document(),
None => return warn!("Message sent to closed pipeline {}.", pipeline_id),
};
- document.dispatch_key_event(key, state, modifiers, &self.constellation_chan);
+ document.dispatch_key_event(ch, key, state, modifiers, &self.constellation_chan);
}
}
}