Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for ModifierFlags on PointerGestureRecognizer (PointerEventArgs) #16214

Open
Tracked by #16799 ...
PureWeen opened this issue Jul 18, 2023 · 1 comment
Open
Tracked by #16799 ...
Labels
Milestone

Comments

@PureWeen
Copy link
Member

PureWeen commented Jul 18, 2023

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.
@ghost
Copy link

ghost commented Aug 3, 2023

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants