-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Rename Accelerator to KeyboardAccelerator and Refactor APIs #16740
Conversation
Is there a reason why? Any conflicts? Was this a thing in forms? |
@mattleibow We had some offline team discussions about this that you may have missed :( |
Is there a reason this is on the element as opposed to an attached property?
This way we can potentially group various arbitrary keyboard things? So we would also do this on menu and stuff. The people can use it to Seton random things for custom handlers. I may have a drawn view that allows for something like this:
I can then have a custom handler MagicViewHandler that understands how to support this. Otherwise we force people to add all accelerators to the root view. This does not change how we do core. IView or whatever still does the accelerators, but this allows people to reuse the whole parsing and Xaml converters on any element. |
|
Thinking about my comments and what could happen, I also see UWP uses a property on UIElement. So we probably don't need to over engineer it. |
@mattleibow I created an issue to capture the work we'll do later based on our convo offline. Feel free to add more notes there #16936 |
…erators # Conflicts: # src/Core/src/PublicAPI/net-android/PublicAPI.Unshipped.txt # src/Core/src/PublicAPI/net-ios/PublicAPI.Unshipped.txt # src/Core/src/PublicAPI/net-maccatalyst/PublicAPI.Unshipped.txt # src/Core/src/PublicAPI/net-tizen/PublicAPI.Unshipped.txt # src/Core/src/PublicAPI/net-windows/PublicAPI.Unshipped.txt # src/Core/src/PublicAPI/net/PublicAPI.Unshipped.txt # src/Core/src/PublicAPI/netstandard/PublicAPI.Unshipped.txt # src/Core/src/PublicAPI/netstandard2.0/PublicAPI.Unshipped.txt
API diff files, API docs, mac testing in progress |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good. I have a few comments so far.
|
||
namespace Microsoft.Maui.Controls.Core.UnitTests | ||
{ | ||
public class AcceleratorTypeConverterUnitTests : BaseTestFixture |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can keep this for now, and maybe add some tests to convert from this old type into the new type for compat reasons?
Description of Change
New usage:
or