From: Ajay Bura Date: Fri, 31 Dec 2021 12:09:39 +0000 (+0530) Subject: Remove room-settings hotkeys X-Git-Tag: v1.7.0~62 X-Git-Url: https://git.wafflesoft.org/?a=commitdiff_plain;h=6fdd9ed48b189604585ef2c0aa1c4ab5473dd6dd;p=rainny.git Remove room-settings hotkeys Signed-off-by: Ajay Bura --- diff --git a/src/client/event/hotkeys.js b/src/client/event/hotkeys.js index ab94635..6d7ec38 100644 --- a/src/client/event/hotkeys.js +++ b/src/client/event/hotkeys.js @@ -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;