Client: disabled the hotkeys in index editing mode
This commit is contained in:
parent
ce8aebc6a4
commit
3fb4684e51
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user