Remove room-settings hotkeys
authorAjay Bura <ajbura@gmail.com>
Fri, 31 Dec 2021 12:09:39 +0000 (17:39 +0530)
committerAjay Bura <ajbura@gmail.com>
Fri, 31 Dec 2021 12:09:39 +0000 (17:39 +0530)
Signed-off-by: Ajay Bura <ajbura@gmail.com>
src/client/event/hotkeys.js

index ab94635966854bf8d5c7ab0e1b3ac410bd29958d..6d7ec3841d66d39c1d3d923a8ded1e86c40beb38 100644 (file)
@@ -1,4 +1,4 @@
-import { openSearch, toggleRoomSettings } from '../action/navigation';
+import { openSearch } from '../action/navigation';
 import navigation from '../state/navigation';
 
 function listenKeyboard(event) {
@@ -13,17 +13,6 @@ function listenKeyboard(event) {
   }
 
   if (!event.ctrlKey && !event.altKey) {
-    if (event.keyCode === 38 && navigation.isRoomSettings) {
-      // close room settings
-      toggleRoomSettings();
-      return;
-    }
-    if (event.keyCode === 40 && !navigation.isRoomSettings) {
-      // open room settings
-      toggleRoomSettings();
-      return;
-    }
-
     if (navigation.isRawModalVisible) return;
     if (['text', 'textarea'].includes(document.activeElement.type)) {
       return;