You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-12-10 05:42:29 +03:00
Inhibit Room List keyboard pass-thru when the search beta is enabled (#7752)
This commit is contained in:
committed by
GitHub
parent
479e7e9a25
commit
4394c162db
@@ -317,6 +317,7 @@ export default class LeftPanel extends React.Component<IProps, IState> {
|
||||
|
||||
private onRoomListKeydown = (ev: React.KeyboardEvent) => {
|
||||
if (ev.altKey || ev.ctrlKey || ev.metaKey) return;
|
||||
if (SettingsStore.getValue("feature_spotlight")) 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();
|
||||
|
||||
Reference in New Issue
Block a user