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
Improve RovingTabIndex & Room List filtering performance (#6987)
This commit is contained in:
committed by
GitHub
parent
39e61c4fa3
commit
04c06b6aa8
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user