-
-
Notifications
You must be signed in to change notification settings - Fork 521
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
Adds customizable keys for activating the key tips #563
Conversation
Thanks for contributing! |
Could you add some documentation for this feature to the documentation repository? That would be nice ;-) |
Yes. No problem. But it might take a couple of days. Wait a minute. What exactly is the documentation repository?? Is there a separate repo for that? |
Yes there is https://github.com/fluentribbon/fluentribbon.github.io which hosts the website and documentation. ;-) |
Finally found some time to have a look at this. |
I agree it could be easier to define a list of KeyGestures in XAML as they are used in other places, too and programmers are used to them. I thought it could be a problem that some keys that are only valid when a also a modifier was provided. When editing the IsShowOrHideKey method of the KeyTipService I was also not sure about the limitation to SystemKeys and Shift keys. But I assume that's there because of a certain reason, so I left that part untouched. |
You are right about the modifier keys.
So the only special case left is Shift + F10. I noticed that |
I just pushed the changes that use KeyGestures. Some parts might require some optimization, but it's already a bit late :) |
There are a few things that are problematic in the code. |
I agree. Just go ahead and do the changes. I'll take a look at them when the PR is merged with the main branch. |
Ok, i have admit that By that we still get type-safe keys because you can use
|
As announced in Issue #559 I extended the ribbon service that the implementer can change the default keys that activate key tips.
This can become handy when the default keys are needed for other functions in the application.