diff options
author | Arthur Marble <arthur@info9.net> | 2016-09-17 01:26:55 -0500 |
---|---|---|
committer | Arthur Marble <arthur@info9.net> | 2016-09-17 20:31:46 -0500 |
commit | bdbc04409d25770b40c0f806bfa815e5a2313d21 (patch) | |
tree | a044cc8397eb9578aac19a2a21c5a874921b7fa5 /components/script/dom/htmlbuttonelement.rs | |
parent | fd0622a74195092b8873f497727bc654c40729be (diff) | |
download | servo-bdbc04409d25770b40c0f806bfa815e5a2313d21.tar.gz servo-bdbc04409d25770b40c0f806bfa815e5a2313d21.zip |
This commit refactors altKey to alt_key when possible.
Diffstat (limited to 'components/script/dom/htmlbuttonelement.rs')
-rw-r--r-- | components/script/dom/htmlbuttonelement.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/htmlbuttonelement.rs b/components/script/dom/htmlbuttonelement.rs index 4bf1b9a16b5..e1e2a0ccd41 100644 --- a/components/script/dom/htmlbuttonelement.rs +++ b/components/script/dom/htmlbuttonelement.rs @@ -283,7 +283,7 @@ impl Activatable for HTMLButtonElement { // https://html.spec.whatwg.org/multipage/#implicit-submission #[allow(unsafe_code)] - fn implicit_submission(&self, ctrl_key: bool, shift_key: bool, altKey: bool, metaKey: bool) { + fn implicit_submission(&self, ctrl_key: bool, shift_key: bool, alt_key: bool, metaKey: bool) { let doc = document_from_node(self); let node = doc.upcast::<Node>(); let owner = self.form_owner(); @@ -296,7 +296,7 @@ impl Activatable for HTMLButtonElement { .map(|s| synthetic_click_activation(s.r().as_element(), ctrl_key, shift_key, - altKey, + alt_key, metaKey, ActivationSource::NotFromClick)); } |