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

Fix room list treeview filtering not ignoring modifier keys (#7231)

This commit is contained in:
Michael Telatynski
2021-11-30 16:04:27 +00:00
committed by GitHub
parent 5c895bf3f6
commit 5ff810b687

View File

@@ -306,6 +306,7 @@ export default class LeftPanel extends React.Component<IProps, IState> {
};
private onRoomListKeydown = (ev: React.KeyboardEvent) => {
if (ev.altKey || ev.ctrlKey || ev.metaKey) return;
// we cannot handle Space as that is an activation key for all focusable elements in this widget
if (ev.key.length === 1) {
ev.preventDefault();