You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-12-07 03:42:20 +03:00
Add arrow key controls to emoji and reaction pickers (#10637)
* Add arrow key controls to emoji and reaction pickers * Iterate types * Switch to using aria-activedescendant * Add tests * Fix tests * Iterate * Update test * Tweak header keyboard navigation behaviour * Also handle scrolling on left/right arrow keys * Iterate
This commit is contained in:
committed by
GitHub
parent
0d9fa0515d
commit
2da52372d4
@@ -148,7 +148,7 @@ export default class ContextMenu extends React.PureComponent<React.PropsWithChil
|
||||
|
||||
const first =
|
||||
element.querySelector<HTMLElement>('[role^="menuitem"]') ||
|
||||
element.querySelector<HTMLElement>("[tab-index]");
|
||||
element.querySelector<HTMLElement>("[tabindex]");
|
||||
|
||||
if (first) {
|
||||
first.focus();
|
||||
|
||||
Reference in New Issue
Block a user