Skip to content

Modifer keys for mouse movement #581

@DanielHeath

Description

@DanielHeath

I'm testing a radiology application which assigns different meaning to mousedrag vs shift+mousedrag.

Currently that requires dropping all the way down from capybara to node.native.browser.page.command("Input.dispatchMouseEvent", to add the modifiers bitfield to the mousemove call.

Would a PR be accepted adding support for this?

My first thought is extending mouse.rb so you could call

Ferrum::Mouse.with_modifier_key(:shift) do 
  # within this block, all mouse events have the shift modifier added
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions