Skip to content

(WIP) Refactor listview to always focus the row#2993

Closed
LFDanLu wants to merge 9 commits into
mainfrom
refactor_listview_row_focus
Closed

(WIP) Refactor listview to always focus the row#2993
LFDanLu wants to merge 9 commits into
mainfrom
refactor_listview_row_focus

Conversation

@LFDanLu
Copy link
Copy Markdown
Member

@LFDanLu LFDanLu commented Mar 30, 2022

Closes #2946

✅ Pull Request Checklist:

  • Included link to corresponding React Spectrum GitHub Issue.
  • Added/updated unit tests and storybook for this change (for new code or code which already has tests).
  • Filled out test instructions.
  • Updated documentation (if it already exists for this component).
  • Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:

🧢 Your Project:

LFDanLu added 8 commits March 31, 2022 14:46
Felt that the previous modifications to GridKeyboardDelegate were too specific to ListView so split out the changes. Also fixes pageUp/Down/Home/End when you are focused on the ListView row (we forgot to pass the layout to the delegate previously)
needed to override getItemRect for the ListView keyboard delegate so that it always uses the row key, namely due to the gridcell keys being unavailable in the listlayout. Changed getItem and getItemRect to protected funcs in GridKeyboardDelegate so I could do that
@LFDanLu LFDanLu force-pushed the refactor_listview_row_focus branch from fbb6f39 to 2a92a70 Compare March 31, 2022 22:01
@LFDanLu LFDanLu changed the base branch from issue_2897 to main March 31, 2022 22:01
@LFDanLu
Copy link
Copy Markdown
Member Author

LFDanLu commented Mar 31, 2022

Noticed some strange behavior when navigating the listview via ctrl +option + arrow keys with voiceover on, seems to snap you back to the "old" focused row when you move the voiceover cursor on a focusable element. Seems to be pre-existing in TableView and ListView, maybe something to do with focus not truly changing when moving the voiceover cursor...

@LFDanLu
Copy link
Copy Markdown
Member Author

LFDanLu commented Apr 4, 2022

favoring #3000 over this one, closing for now

@LFDanLu LFDanLu closed this Apr 4, 2022
@LFDanLu LFDanLu deleted the refactor_listview_row_focus branch January 11, 2023 01:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stop ListView screen reader announcement from reading ALL the contents of the cell

1 participant