mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
This commit refactors shiftKey to shift_key where possible.
This commit is contained in:
parent
77170a14bc
commit
fd0622a741
6 changed files with 10 additions and 10 deletions
|
@ -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, shiftKey: bool, altKey: bool, metaKey: bool) {
|
||||
fn implicit_submission(&self, ctrl_key: bool, shift_key: bool, altKey: bool, metaKey: bool) {
|
||||
let doc = document_from_node(self);
|
||||
let node = doc.upcast::<Node>();
|
||||
let owner = self.form_owner();
|
||||
|
@ -295,7 +295,7 @@ impl Activatable for HTMLButtonElement {
|
|||
.find(|r| r.form_owner() == owner)
|
||||
.map(|s| synthetic_click_activation(s.r().as_element(),
|
||||
ctrl_key,
|
||||
shiftKey,
|
||||
shift_key,
|
||||
altKey,
|
||||
metaKey,
|
||||
ActivationSource::NotFromClick));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue