1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-12-07 03:42:20 +03:00

Improve RovingTabIndex & Room List filtering performance (#6987)

This commit is contained in:
Michael Telatynski
2021-10-26 12:16:50 +01:00
committed by GitHub
parent 39e61c4fa3
commit 04c06b6aa8
9 changed files with 471 additions and 327 deletions

View File

@@ -249,6 +249,8 @@ export class ContextMenu extends React.PureComponent<IProps, IState> {
let handled = true;
switch (ev.key) {
// XXX: this is imitating roving behaviour, it should really use the RovingTabIndex utils
// to inherit proper handling of unmount edge cases
case Key.TAB:
case Key.ESCAPE:
case Key.ARROW_LEFT: // close on left and right arrows too for when it is a context menu on a <Toolbar />