You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-12-13 06:02:19 +03:00
Fix room list treeview filtering not ignoring modifier keys (#7231)
This commit is contained in:
committed by
GitHub
parent
5c895bf3f6
commit
5ff810b687
@@ -306,6 +306,7 @@ export default class LeftPanel extends React.Component<IProps, IState> {
|
|||||||
};
|
};
|
||||||
|
|
||||||
private onRoomListKeydown = (ev: React.KeyboardEvent) => {
|
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
|
// we cannot handle Space as that is an activation key for all focusable elements in this widget
|
||||||
if (ev.key.length === 1) {
|
if (ev.key.length === 1) {
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
|
|||||||
Reference in New Issue
Block a user