-
Notifications
You must be signed in to change notification settings - Fork 81
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
Improve the reverse navigation order of focusable elements within KTable cells #840
Open
shivam-daksh
wants to merge
18
commits into
learningequality:develop
Choose a base branch
from
shivam-daksh:nav-order-ktable
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 17 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
a4188c8
refactor the handlekeydown code
shivam-daksh 1bb1471
lint fix by commenting the unused code
shivam-daksh 75f07a2
row highlight fix when tab key pressed
shivam-daksh 6163a15
Fix the infinite loop of Tab key over table cells
shivam-daksh c518276
adding the lost comments during refactoring
shivam-daksh f41e333
Merge branch 'learningequality:develop' into refactor-handlekeydown
shivam-daksh b6f712e
fixing the tab and shift+tab key functionality
shivam-daksh 0708628
highlight rows and columns
shivam-daksh fff71d4
tab and shift+tab working but first cell of table not getting focused
shivam-daksh 4b61140
Merge branch 'refactor-handlekeydown' of https://github.com/shivam-da…
shivam-daksh 59e33b9
sort the columns only from header row
shivam-daksh 0f5bd96
utilize updateFocusState function in arrow keys handling
shivam-daksh 354df74
change parameter name of updateFocusState function
shivam-daksh 021bf28
modify the shift+tab conditions
shivam-daksh 8f2d982
fix the reverse dom order using shift+tab
shivam-daksh fdcb523
Merge branch 'learningequality:develop' into nav-order-ktable
shivam-daksh dae4c63
add comment to the change for readability
shivam-daksh 46d6cd7
improve performance by replacing querySelectorAll
shivam-daksh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
About the use of
querySelectorAll
here, I was actually having a little lag in the navigation behaviour when moving through the focusable elements - this reminded me of an earlier code review comment here. We were using querySelectorAll earlier as well, but it caused performance issues, so we shifted togetElementByTagname
and it had a very positive impact on the same. Can you update this code to make use of the previous getElementbyTagname logic? or maybe if there's any other conclusion you derive from that conversation about performance improvement- it is more than welcome. Thanks!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.
@BabyElias, Thanks for noticing. I've changed it to
getElementsByTagName
.