Skip to content

Modifer keys for mouse movement #581

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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