-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[keybindings] add 'Reset' button to the edit keybinding dialog #5603
Conversation
While testing, I added a filter in the "Search keybindings" field and no "Reset" button was available to return to the default value. As a filter I entered "user" to filter the modified keybindings. |
Do you have any command with a custom keybinding? |
When I tested, it seemed I could still use the old/default keybinding after the edit. To reproduce this:
Environment: Chrome + MacOS. Maybe this is not related to this PR. I tried on master branch and got the same issue. |
@vince-fugnitto |
Could you show me? A gif perhaps. |
3fe737f
to
1d082bf
Compare
@lmcbout thank you Jacques, the |
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.
Minor comment
Also, when you reset the keybinding, it would be nice if the focus remains on the selected items. Could be done in a separate PR
LGTM .
- created a custom `EditKeybinding` dialog used to edit keybindings, and reset custom keybindings to their default value. Custom keybindings are keybindings which have a `User` scope (exist in the `keymaps.json`). - the additional functionality added to the edit keybindings dialog is used to more easily revert custom keybindings without the need to click the revert button in the tree. - fixed issue where if the `scope` had a fuzzy match and it had `user` scope, the `reset` icon and button were not preset. Signed-off-by: Vincent Fugnitto <[email protected]>
1d082bf
to
4c17619
Compare
Description
EditKeybinding
dialog used to edit keybindings, and reset customkeybindings to their default value. Custom keybindings are keybindings which have
a
User
scope (exist in thekeymaps.json
).used to more easily revert custom keybindings without the need to click
the revert button in the tree.
How to Test
Open Keyboard Shortcuts
.Reset
button.Reset
button.Signed-off-by: Vincent Fugnitto [email protected]