mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Implement MouseEvent buttons attribute
This commit is contained in:
parent
425686984d
commit
be3cb00c77
10 changed files with 111 additions and 36 deletions
|
@ -12,6 +12,7 @@ use crate::dom::mouseevent::MouseEvent;
|
|||
use crate::dom::node::window_from_node;
|
||||
use crate::dom::window::ReflowReason;
|
||||
use script_layout_interface::message::ReflowGoal;
|
||||
use script_traits::MouseButton;
|
||||
|
||||
/// Trait for elements with defined activation behavior
|
||||
pub trait Activatable {
|
||||
|
@ -96,6 +97,7 @@ pub fn synthetic_click_activation(
|
|||
alt_key,
|
||||
meta_key,
|
||||
0,
|
||||
MouseButton::Left as u16,
|
||||
None,
|
||||
None,
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue