mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix: Move add node hotkey to the right component
This commit is contained in:
parent
ce7172d78c
commit
d4463674cf
@ -140,7 +140,7 @@ const AddNodePopover = () => {
|
||||
onClose();
|
||||
}, [onClose]);
|
||||
|
||||
useHotkeys(['space', '/'], handleHotkeyOpen);
|
||||
useHotkeys(['shift+a', 'space', '/'], handleHotkeyOpen);
|
||||
useHotkeys(['escape'], handleHotkeyClose);
|
||||
|
||||
return (
|
||||
|
@ -2,7 +2,6 @@ import { useAppDispatch } from 'app/store/storeHooks';
|
||||
import IAIButton from 'common/components/IAIButton';
|
||||
import { addNodePopoverOpened } from 'features/nodes/store/nodesSlice';
|
||||
import { memo, useCallback } from 'react';
|
||||
import { useHotkeys } from 'react-hotkeys-hook';
|
||||
import { Panel } from 'reactflow';
|
||||
|
||||
const TopLeftPanel = () => {
|
||||
@ -12,10 +11,6 @@ const TopLeftPanel = () => {
|
||||
dispatch(addNodePopoverOpened());
|
||||
}, [dispatch]);
|
||||
|
||||
useHotkeys(['shift+a'], () => {
|
||||
handleOpenAddNodePopover();
|
||||
});
|
||||
|
||||
return (
|
||||
<Panel position="top-left">
|
||||
<IAIButton aria-label="Add Node" onClick={handleOpenAddNodePopover}>
|
||||
|
Loading…
Reference in New Issue
Block a user