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

keymaps: fix search when keybindings are updated #11366

Merged
merged 1 commit into from
Jun 29, 2022

Conversation

vince-fugnitto
Copy link
Member

What it does

Fixes: #11365.

The pull-request fixes a minor regression from #11102 where the update of keybindings would cause the keyboard shortcuts view from re-rendering but not respecting the search field if a user has a query present. The change preserves the search on update:

kb-preserve-search.mp4

How to test

  1. start the application
  2. open the keyboard shortcuts view (F1 > Preferences: Open Keyboard Shortcuts)
  3. type a search query
  4. update a default keybinding and accept the dialog - confirm that the search results are preserved

Review checklist

Reminder for reviewers

Signed-off-by: vince-fugnitto [email protected]

The commit fixes the keybinding-widget results when keybindings are
updated. Previously the update would cause the widget to reset
completely and re-render and not respect the search query.

Signed-off-by: vince-fugnitto <[email protected]>
@vince-fugnitto vince-fugnitto added the keybindings issues related to keybindings label Jun 29, 2022
Copy link
Contributor

@colin-grant-work colin-grant-work left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I confirm that on master, modifying a keybinding resets search results, while this code ensures that the search filter is retained.

@vince-fugnitto vince-fugnitto merged commit 0f61971 into master Jun 29, 2022
@vince-fugnitto vince-fugnitto deleted the vf/keybinding-bugfix branch June 29, 2022 21:07
@github-actions github-actions bot added this to the 1.27.0 milestone Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
keybindings issues related to keybindings
Projects
None yet
Development

Successfully merging this pull request may close these issues.

keymaps: keyboard shortcuts view does not preserve search when updating keybindings
2 participants