Fix refactor selectableList broke hotkey onEnter behavior (#11562)
This commit is contained in:
@ -2,7 +2,7 @@ import { ActionDisplayProps } from '@/action-menu/actions/display/components/Act
|
||||
import { getActionLabel } from '@/action-menu/utils/getActionLabel';
|
||||
import { CommandMenuItem } from '@/command-menu/components/CommandMenuItem';
|
||||
import { SelectableItem } from '@/ui/layout/selectable-list/components/SelectableItem';
|
||||
import { useListenToEnterHotkeyOnListItem } from '@/ui/layout/selectable-list/hooks/useListenToEnterHotkeyOnListItem';
|
||||
import { useSelectableListListenToEnterHotkeyOnItem } from '@/ui/layout/selectable-list/hooks/useSelectableListListenToEnterHotkeyOnItem';
|
||||
import { AppHotkeyScope } from '@/ui/utilities/hotkey/types/AppHotkeyScope';
|
||||
import { useNavigate } from 'react-router-dom';
|
||||
import { isDefined } from 'twenty-shared/utils';
|
||||
@ -25,7 +25,7 @@ export const ActionListItem = ({
|
||||
}
|
||||
};
|
||||
|
||||
useListenToEnterHotkeyOnListItem({
|
||||
useSelectableListListenToEnterHotkeyOnItem({
|
||||
hotkeyScope: AppHotkeyScope.CommandMenuOpen,
|
||||
itemId: action.key,
|
||||
onEnter: handleClick,
|
||||
|
||||
Reference in New Issue
Block a user