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

pull/21833/head
Michael Telatynski 2021-11-30 16:04:27 +00:00 committed by GitHub
parent 5c895bf3f6
commit 5ff810b687
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

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();