Skip to content

Should the Display#InputEventCapturer honor Event.isConsumed()? #1

Open

Description

@Protuhj

As the title says.

Currently, in all of the fireXXXX(...) methods, it is not checked whether or not an event has been consumed in the chain of ControlAdapters.

I wrote a ControlAdapter to change how left-clicking works, depending on a keyboard modifier. I wanted to consume the appropriate MouseEvent so it didn't propagate to all other listeners (like the PanControl).

Now I understand I can either add my own pan functionality to my custom adapter, or add/remove adapters on demand, but those options seem a bit hacky and overly-cumbersome.

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