Add hotkey ctrl+k for search

Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
Ajay Bura
2021-12-11 10:50:34 +05:30
parent 413188c995
commit fbeecc0479
5 changed files with 52 additions and 32 deletions

View File

@@ -6,6 +6,7 @@ import { secret } from './state/auth';
import RoomList from './state/RoomList';
import RoomsInput from './state/RoomsInput';
import Notifications from './state/Notifications';
import { initHotkeys } from './event/hotkeys';
global.Olm = require('@matrix-org/olm');
@@ -62,6 +63,7 @@ class InitMatrix extends EventEmitter {
this.roomList = new RoomList(this.matrixClient);
this.roomsInput = new RoomsInput(this.matrixClient);
this.notifications = new Notifications(this.roomList);
initHotkeys();
this.emit('init_loading_finished');
}
},