Skip to content

Commit b1ff0b9

Browse files
committed
hook up keyb shortcuts for roomdir
1 parent be52787 commit b1ff0b9

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

‎src/components/structures/RoomDirectory.js‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ var ContentRepo = require("matrix-js-sdk").ContentRepo;
2323
var Modal = require('matrix-react-sdk/lib/Modal');
2424
var sdk = require('matrix-react-sdk');
2525
var dis = require('matrix-react-sdk/lib/dispatcher');
26-
var GeminiScrollbar = require('react-gemini-scrollbar');
2726

2827
var linkify = require('linkifyjs');
2928
var linkifyString = require('linkifyjs/string');
@@ -460,6 +459,17 @@ module.exports = React.createClass({
460459
return fields;
461460
},
462461

462+
/**
463+
* called by the parent component when PageUp/Down/etc is pressed.
464+
*
465+
* We pass it down to the scroll panel.
466+
*/
467+
handleScrollKey: function(ev) {
468+
if (this.scrollPanel) {
469+
scrollPanel.handleScrollKey(ev);
470+
}
471+
},
472+
463473
render: function() {
464474
const SimpleRoomHeader = sdk.getComponent('rooms.SimpleRoomHeader');
465475
const Loader = sdk.getComponent("elements.Spinner");

0 commit comments

Comments
 (0)