Client: disabled the hotkeys in index editing mode

This commit is contained in:
Dmitry Sychugov 2024-06-26 15:35:49 +05:00
parent ce8aebc6a4
commit 3fb4684e51

View File

@ -93,6 +93,7 @@ const withHotkeys = (Component) => {
isGroupMenuBlocked,
isFormRoom,
isParentFolderFormRoom,
isIndexEditingMode,
} = props;
const navigate = useNavigate();
@ -178,7 +179,8 @@ const withHotkeys = (Component) => {
(e) => {
const someDialogIsOpen = checkDialogsOpen();
if (e.shiftKey || e.ctrlKey || someDialogIsOpen) return;
if (e.shiftKey || e.ctrlKey || someDialogIsOpen || isIndexEditingMode)
return;
switch (e.key) {
case "ArrowDown":
@ -423,6 +425,7 @@ const withHotkeys = (Component) => {
selectedFolderStore,
userStore,
currentTariffStatusStore,
indexingStore,
}) => {
const {
setSelected,
@ -530,6 +533,7 @@ const withHotkeys = (Component) => {
isTrashFolder,
isArchiveFolder,
isRoomsFolder,
isIndexEditingMode: indexingStore.isIndexEditingMode,
selection,
setFavoriteAction,