Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Fix room list treeview filtering not ignoring modifier keys (#7231)
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy authored Nov 30, 2021
1 parent 5c895bf commit 5ff810b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/structures/LeftPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 5ff810b

Please sign in to comment.