Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add support for ModifierFlags on PointerGestureRecognizer (PointerEventArgs) #16214

@PureWeen

Description

@PureWeen

Description

Add the ModifierFlags on the PointerEventArgs for all PointerGestureRecognizer events.

Public API Changes

[Flags]
public enum KeyboardAcceleratorModifiers
{
    None,
    AlphaShift, // iOS only?
    Shift, // iOS and windows
    Control, // iOS and Windows
    Alternate, // iOS only?
    Command, // iOS
    Windows, // Windows only
    NumericPad, // iOS only
    Menu // Windows Only   
}
public class PointerEventArgs
{
     public IList<KeyboardAcceleratorModifiers> ModifierKeys { get; }
}

Intended Use-Case

Support the ability to add behavior for scenarios like "Shift and Left Click"

Additional Research

Do we need to add "secondary/primary" information as well?

Alternative solution for now

  • we just add the platform args to PointerEventArgs then users can just tap into these themselves.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions