mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix: Remove / as hotkey for add node and add tooltip
This commit is contained in:
parent
d4463674cf
commit
5cf9b75d77
@ -140,7 +140,7 @@ const AddNodePopover = () => {
|
|||||||
onClose();
|
onClose();
|
||||||
}, [onClose]);
|
}, [onClose]);
|
||||||
|
|
||||||
useHotkeys(['shift+a', 'space', '/'], handleHotkeyOpen);
|
useHotkeys(['shift+a', 'space'], handleHotkeyOpen);
|
||||||
useHotkeys(['escape'], handleHotkeyClose);
|
useHotkeys(['escape'], handleHotkeyClose);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
import { Tooltip } from '@chakra-ui/react';
|
||||||
import { useAppDispatch } from 'app/store/storeHooks';
|
import { useAppDispatch } from 'app/store/storeHooks';
|
||||||
import IAIButton from 'common/components/IAIButton';
|
import IAIButton from 'common/components/IAIButton';
|
||||||
import { addNodePopoverOpened } from 'features/nodes/store/nodesSlice';
|
import { addNodePopoverOpened } from 'features/nodes/store/nodesSlice';
|
||||||
@ -13,9 +14,15 @@ const TopLeftPanel = () => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Panel position="top-left">
|
<Panel position="top-left">
|
||||||
<IAIButton aria-label="Add Node" onClick={handleOpenAddNodePopover}>
|
<Tooltip label="Add New Node (Shift+A, Space)">
|
||||||
Add Node
|
<IAIButton
|
||||||
</IAIButton>
|
size="sm"
|
||||||
|
aria-label="Add Node"
|
||||||
|
onClick={handleOpenAddNodePopover}
|
||||||
|
>
|
||||||
|
Add Node
|
||||||
|
</IAIButton>
|
||||||
|
</Tooltip>
|
||||||
</Panel>
|
</Panel>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -290,7 +290,7 @@ export default function HotkeysModal({ children }: HotkeysModalProps) {
|
|||||||
{
|
{
|
||||||
title: t('hotkeys.addNodes.title'),
|
title: t('hotkeys.addNodes.title'),
|
||||||
desc: t('hotkeys.addNodes.desc'),
|
desc: t('hotkeys.addNodes.desc'),
|
||||||
hotkey: 'Shift + A',
|
hotkey: 'Shift + A / Space',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user