-
Notifications
You must be signed in to change notification settings - Fork 102
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
ShowKeybindDialog now renders a table. #188
Conversation
- Added `KeyValueTable` - `GetKeybindString` capitalizes keys - `GetKeybindString` adds support for `KeyModifiers.Win`
I like the change and the addition of search functionality is very nice! Tested it and all key binds show and search works for both the description as well as the shortcuts. One issue however, is that if you open the dialog once and then close it you will run into an "object disposed" error if you try to open it again. I'd either include some error handling for this or change the way the KeyValueTable gets disposed. If you can fix this it'd be a fantastic change IMO. Thanks for the PR |
Thanks for pointing out that error - it should be fixed now. |
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.
The fix for for the KeyValueTable works as intended. Would like to add 1 minor change to the regex but other than that all looks good!
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.
All good! Will have to wait for @josteink or @rickbutton for the merge though
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.
That's awesome. Thanks for the patch!
This adds
KeyValueTable
, which is used to replaceTextBlockMessage
for displaying the current keybindings.Changes:
KeyValueTable
Capitalize
string extension methodGetKeybindString
capitalizes keys to aid readabilityGetKeybindString
adds support forKeyModifiers.Win