diff --git a/packages/client/src/HOCs/withHotkeys.js b/packages/client/src/HOCs/withHotkeys.js index abaa20da6e..5bf5fc9dd9 100644 --- a/packages/client/src/HOCs/withHotkeys.js +++ b/packages/client/src/HOCs/withHotkeys.js @@ -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,