Add focus for a valid element in lists support - #13
Merged
Conversation
ignatiqq
marked this pull request as draft
March 3, 2024 12:27
Owner
|
Can you explain the use case? |
Owner
|
If you are talking about #11 task, note that it introduce custom |
ignatiqq
marked this pull request as ready for review
March 3, 2024 15:02
ignatiqq
marked this pull request as draft
March 3, 2024 15:05
Contributor
Author
|
I'm sorry. I need help. If we focused on element which is disabled. But we have element which has both valid attrs: should we click on it. Or we should only take care of activeElement "data-keyux-hotkeys"? |
Owner
|
Can you write me to https://t.me/sitnik ? I think the chat will be better to explain the idea. |
ignatiqq
marked this pull request as ready for review
March 3, 2024 19:57
ai
reviewed
Mar 3, 2024
ai
reviewed
Mar 3, 2024
ai
reviewed
Mar 3, 2024
ai
reviewed
Mar 3, 2024
ai
reviewed
Mar 4, 2024
ai
reviewed
Mar 4, 2024
ai
reviewed
Mar 4, 2024
ai
reviewed
Mar 4, 2024
ai
reviewed
Mar 4, 2024
ai
reviewed
Mar 4, 2024
ai
reviewed
Mar 4, 2024
ai
reviewed
Mar 4, 2024
ai
reviewed
Mar 4, 2024
ai
reviewed
Mar 4, 2024
| if (attr) { | ||
| let el = where.querySelector(`#${attr}`) | ||
|
|
||
| if (el.getAttribute('aria-keyshortcuts') === (codeOverride || code)) { |
Owner
There was a problem hiding this comment.
We can remove this test. Buttons should be inside data-keyux-hotkeys pannel.
ai
reviewed
Mar 4, 2024
ai
reviewed
Mar 4, 2024
ai
reviewed
Mar 4, 2024
ai
reviewed
Mar 4, 2024
| </h2> | ||
| <ul> | ||
| <li data-keyux-hotkeys="panel" data-keyux-ignore-hotkeys tabIndex={0}> | ||
| <button>First button</button> |
Owner
There was a problem hiding this comment.
Suggested change
| <button>First button</button> | |
| First item |
We don’t need buttons here
ai
reviewed
Mar 4, 2024
ai
reviewed
Mar 4, 2024
ai
reviewed
Mar 4, 2024
|
|
||
| press(window, { key: 'v' }) | ||
| equal(clicked, 'v2') | ||
| ;(window.document.querySelector('ul li') as HTMLLIElement).focus() |
Owner
There was a problem hiding this comment.
Suggested change
| ;(window.document.querySelector('ul li') as HTMLLIElement).focus() | |
| window.document.querySelector<HTMLLIElement>('ul li').focus() |
ai
reviewed
Mar 4, 2024
ai
reviewed
Mar 4, 2024
ai
reviewed
Mar 4, 2024
ai
reviewed
Mar 4, 2024
Closed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
solves #11