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,
|
isGroupMenuBlocked,
|
||||||
isFormRoom,
|
isFormRoom,
|
||||||
isParentFolderFormRoom,
|
isParentFolderFormRoom,
|
||||||
|
isIndexEditingMode,
|
||||||
} = props;
|
} = props;
|
||||||
|
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
@ -178,7 +179,8 @@ const withHotkeys = (Component) => {
|
|||||||
(e) => {
|
(e) => {
|
||||||
const someDialogIsOpen = checkDialogsOpen();
|
const someDialogIsOpen = checkDialogsOpen();
|
||||||
|
|
||||||
if (e.shiftKey || e.ctrlKey || someDialogIsOpen) return;
|
if (e.shiftKey || e.ctrlKey || someDialogIsOpen || isIndexEditingMode)
|
||||||
|
return;
|
||||||
|
|
||||||
switch (e.key) {
|
switch (e.key) {
|
||||||
case "ArrowDown":
|
case "ArrowDown":
|
||||||
@ -423,6 +425,7 @@ const withHotkeys = (Component) => {
|
|||||||
selectedFolderStore,
|
selectedFolderStore,
|
||||||
userStore,
|
userStore,
|
||||||
currentTariffStatusStore,
|
currentTariffStatusStore,
|
||||||
|
indexingStore,
|
||||||
}) => {
|
}) => {
|
||||||
const {
|
const {
|
||||||
setSelected,
|
setSelected,
|
||||||
@ -530,6 +533,7 @@ const withHotkeys = (Component) => {
|
|||||||
isTrashFolder,
|
isTrashFolder,
|
||||||
isArchiveFolder,
|
isArchiveFolder,
|
||||||
isRoomsFolder,
|
isRoomsFolder,
|
||||||
|
isIndexEditingMode: indexingStore.isIndexEditingMode,
|
||||||
|
|
||||||
selection,
|
selection,
|
||||||
setFavoriteAction,
|
setFavoriteAction,
|
||||||
|
Loading…
Reference in New Issue
Block a user