mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
This commit is contained in:
parent
4c1a09e17b
commit
1e98a82797
1 changed files with 0 additions and 56 deletions
|
@ -328,15 +328,6 @@ impl Handler {
|
|||
_ => unreachable!(),
|
||||
};
|
||||
|
||||
session.input_cancel_list.borrow_mut().push(ActionSequence {
|
||||
id: source_id.into(),
|
||||
actions: ActionsType::Key {
|
||||
actions: vec![KeyActionItem::Key(KeyAction::Up(KeyUpAction {
|
||||
value: action.value.clone(),
|
||||
}))],
|
||||
},
|
||||
});
|
||||
|
||||
let keyboard_event = key_input_state.dispatch_keydown(raw_key);
|
||||
|
||||
// Step 12
|
||||
|
@ -360,15 +351,6 @@ impl Handler {
|
|||
_ => unreachable!(),
|
||||
};
|
||||
|
||||
session.input_cancel_list.borrow_mut().push(ActionSequence {
|
||||
id: source_id.into(),
|
||||
actions: ActionsType::Key {
|
||||
actions: vec![KeyActionItem::Key(KeyAction::Up(KeyUpAction {
|
||||
value: action.value.clone(),
|
||||
}))],
|
||||
},
|
||||
});
|
||||
|
||||
if let Some(keyboard_event) = key_input_state.dispatch_keyup(raw_key) {
|
||||
// Step 12
|
||||
let cmd_msg = WebDriverCommandMsg::KeyboardAction(
|
||||
|
@ -396,25 +378,6 @@ impl Handler {
|
|||
}
|
||||
pointer_input_state.pressed.insert(action.button);
|
||||
|
||||
session.input_cancel_list.borrow_mut().push(ActionSequence {
|
||||
id: source_id.into(),
|
||||
actions: ActionsType::Pointer {
|
||||
parameters: PointerActionParameters {
|
||||
pointer_type: match pointer_input_state.subtype {
|
||||
PointerType::Mouse => PointerType::Mouse,
|
||||
PointerType::Pen => PointerType::Pen,
|
||||
PointerType::Touch => PointerType::Touch,
|
||||
},
|
||||
},
|
||||
actions: vec![PointerActionItem::Pointer(PointerAction::Up(
|
||||
PointerUpAction {
|
||||
button: action.button,
|
||||
..Default::default()
|
||||
},
|
||||
))],
|
||||
},
|
||||
});
|
||||
|
||||
let msg_id = self.current_action_id.get().unwrap();
|
||||
let cmd_msg = WebDriverCommandMsg::MouseButtonAction(
|
||||
session.webview_id,
|
||||
|
@ -445,25 +408,6 @@ impl Handler {
|
|||
}
|
||||
pointer_input_state.pressed.remove(&action.button);
|
||||
|
||||
session.input_cancel_list.borrow_mut().push(ActionSequence {
|
||||
id: source_id.into(),
|
||||
actions: ActionsType::Pointer {
|
||||
parameters: PointerActionParameters {
|
||||
pointer_type: match pointer_input_state.subtype {
|
||||
PointerType::Mouse => PointerType::Mouse,
|
||||
PointerType::Pen => PointerType::Pen,
|
||||
PointerType::Touch => PointerType::Touch,
|
||||
},
|
||||
},
|
||||
actions: vec![PointerActionItem::Pointer(PointerAction::Down(
|
||||
PointerDownAction {
|
||||
button: action.button,
|
||||
..Default::default()
|
||||
},
|
||||
))],
|
||||
},
|
||||
});
|
||||
|
||||
let msg_id = self.current_action_id.get().unwrap();
|
||||
let cmd_msg = WebDriverCommandMsg::MouseButtonAction(
|
||||
session.webview_id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue