You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-05 23:10:41 +03:00
Restore Page Up/Down key bindings when focusing the composer
This commit is contained in:
@@ -1669,6 +1669,24 @@ export default class RoomView extends React.Component<IProps, IState> {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* called by the parent component when PageUp/Down/etc is pressed.
|
||||||
|
*
|
||||||
|
* We pass it down to the scroll panel.
|
||||||
|
*/
|
||||||
|
private handleScrollKey = ev => {
|
||||||
|
let panel;
|
||||||
|
if (this.searchResultsPanel.current) {
|
||||||
|
panel = this.searchResultsPanel.current;
|
||||||
|
} else if (this.messagePanel) {
|
||||||
|
panel = this.messagePanel;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (panel) {
|
||||||
|
panel.handleScrollKey(ev);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* get any current call for this room
|
* get any current call for this room
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user