aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/touchevent.rs
diff options
context:
space:
mode:
authorArthur Marble <arthur@info9.net>2016-09-17 01:26:55 -0500
committerArthur Marble <arthur@info9.net>2016-09-17 20:31:46 -0500
commitbdbc04409d25770b40c0f806bfa815e5a2313d21 (patch)
treea044cc8397eb9578aac19a2a21c5a874921b7fa5 /components/script/dom/touchevent.rs
parentfd0622a74195092b8873f497727bc654c40729be (diff)
downloadservo-bdbc04409d25770b40c0f806bfa815e5a2313d21.tar.gz
servo-bdbc04409d25770b40c0f806bfa815e5a2313d21.zip
This commit refactors altKey to alt_key when possible.
Diffstat (limited to 'components/script/dom/touchevent.rs')
-rw-r--r--components/script/dom/touchevent.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/touchevent.rs b/components/script/dom/touchevent.rs
index 0a1aac87ecf..24fae301ac2 100644
--- a/components/script/dom/touchevent.rs
+++ b/components/script/dom/touchevent.rs
@@ -63,7 +63,7 @@ impl TouchEvent {
changed_touches: &TouchList,
target_touches: &TouchList,
ctrl_key: bool,
- altKey: bool,
+ alt_key: bool,
shift_key: bool,
metaKey: bool) -> Root<TouchEvent> {
let ev = TouchEvent::new_uninitialized(window, touches, changed_touches, target_touches);
@@ -72,7 +72,7 @@ impl TouchEvent {
bool::from(cancelable),
view, detail);
ev.ctrl_key.set(ctrl_key);
- ev.alt_key.set(altKey);
+ ev.alt_key.set(alt_key);
ev.shift_key.set(shift_key);
ev.meta_key.set(metaKey);
ev