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

fix: keyboard navigation breaking #11099

Merged
merged 1 commit into from
Jul 2, 2024

Conversation

JammingBen
Copy link
Contributor

Description

Fixes the keyboard navigation breaking in certain scenarios.

The issue was that window.getSelection() would not always return the currently focused element when checking if we need to disable our custom keybindings. So e.g. when clicking the search input and then clicking a file in the file list, the focused element would still be the search input, leading to our keybindings not working.

Related Issue

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests
  • Documentation
  • Maintenance (e.g. dependency updates or tooling)

@JammingBen JammingBen self-assigned this Jun 25, 2024
@JammingBen JammingBen force-pushed the fix/keyboard-navigation-breaking branch from 8e1665c to 5b24326 Compare June 25, 2024 11:53
Fixes the keyboard navigation breaking in certain scenarios.

The issue was that `window.getSelection()` would not always return the currently focused element when checking if we need to disable our custom keybindings. So e.g. when clicking the search input and then clicking a file in the file list, the focused element would still be the search input, leading to our keybindings not working.
@JammingBen JammingBen force-pushed the fix/keyboard-navigation-breaking branch from 5b24326 to e31eff4 Compare July 2, 2024 06:52
Copy link

sonarcloud bot commented Jul 2, 2024

Copy link
Contributor

@fschade fschade left a comment

Choose a reason for hiding this comment

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

🚀

@fschade fschade merged commit 2b1000c into stable-8.0 Jul 2, 2024
3 checks passed
@kulmann kulmann deleted the fix/keyboard-navigation-breaking branch September 5, 2024 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants