mirror of
https://github.com/vector-im/element-web.git
synced 2026-02-08 17:21:13 +01:00
Fix room list treeview filtering not ignoring modifier keys (#7231)
This commit is contained in:
parent
5c895bf3f6
commit
5ff810b687
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user