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 cell navigation #19082

Merged
merged 1 commit into from
Apr 14, 2022
Merged

Fix cell navigation #19082

merged 1 commit into from
Apr 14, 2022

Conversation

barbaravaldez
Copy link
Contributor

After introducing the fix for tab navigation through cells, we focus on the selected cell and we need to update the condition to take that into account.

When clicking, tabbing, and moving the active element in the document is the cell. However when we hit escape to exit edit mode the focus is lost and we need the original check DOM.isAncestor(this.container.nativeElement, document.activeElement)

Also, when moving to another cell we need to focus on the new active cell, so the focus doesn't stay in the previous cell.

This pr is for #19058

@barbaravaldez barbaravaldez requested a review from a team April 14, 2022 00:13
@coveralls
Copy link

Pull Request Test Coverage Report for Build 2164436966

  • 0 of 2 (0.0%) changed or added relevant lines in 1 file are covered.
  • 4 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.006%) to 42.262%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/sql/workbench/contrib/notebook/browser/notebook.component.ts 0 2 0.0%
Files with Coverage Reduction New Missed Lines %
extensions/machine-learning/src/common/processService.ts 2 81.48%
src/sql/workbench/contrib/notebook/browser/notebook.component.ts 2 2.13%
Totals Coverage Status
Change from base Build 2164176891: 0.006%
Covered Lines: 27679
Relevant Lines: 61226

💛 - Coveralls

@barbaravaldez barbaravaldez merged commit 7a86814 into main Apr 14, 2022
@barbaravaldez barbaravaldez deleted the bavaldez/fixKeyNav branch April 14, 2022 17:49
barbaravaldez added a commit that referenced this pull request Apr 14, 2022
chlafreniere pushed a commit that referenced this pull request Apr 14, 2022
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.

4 participants