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]);
|
||||
|
||||
useHotkeys(['shift+a', 'space', '/'], handleHotkeyOpen);
|
||||
useHotkeys(['shift+a', 'space'], handleHotkeyOpen);
|
||||
useHotkeys(['escape'], handleHotkeyClose);
|
||||
|
||||
return (
|
||||
|
@ -1,3 +1,4 @@
|
||||
import { Tooltip } from '@chakra-ui/react';
|
||||
import { useAppDispatch } from 'app/store/storeHooks';
|
||||
import IAIButton from 'common/components/IAIButton';
|
||||
import { addNodePopoverOpened } from 'features/nodes/store/nodesSlice';
|
||||
@ -13,9 +14,15 @@ const TopLeftPanel = () => {
|
||||
|
||||
return (
|
||||
<Panel position="top-left">
|
||||
<IAIButton aria-label="Add Node" onClick={handleOpenAddNodePopover}>
|
||||
Add Node
|
||||
</IAIButton>
|
||||
<Tooltip label="Add New Node (Shift+A, Space)">
|
||||
<IAIButton
|
||||
size="sm"
|
||||
aria-label="Add Node"
|
||||
onClick={handleOpenAddNodePopover}
|
||||
>
|
||||
Add Node
|
||||
</IAIButton>
|
||||
</Tooltip>
|
||||
</Panel>
|
||||
);
|
||||
};
|
||||
|
@ -290,7 +290,7 @@ export default function HotkeysModal({ children }: HotkeysModalProps) {
|
||||
{
|
||||
title: t('hotkeys.addNodes.title'),
|
||||
desc: t('hotkeys.addNodes.desc'),
|
||||
hotkey: 'Shift + A',
|
||||
hotkey: 'Shift + A / Space',
|
||||
},
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user