mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(ui): fix delete layer hotkey
This commit is contained in:
parent
1fa8048509
commit
2baf825f34
@ -28,5 +28,8 @@ export function useCanvasDeleteLayerHotkey() {
|
|||||||
[selectedEntityIdentifier, isStaging]
|
[selectedEntityIdentifier, isStaging]
|
||||||
);
|
);
|
||||||
|
|
||||||
useHotkeys('shift+d', deleteSelectedLayer, { enabled: isDeleteEnabled }, [isDeleteEnabled, deleteSelectedLayer]);
|
useHotkeys(['delete', 'backspace'], deleteSelectedLayer, { enabled: isDeleteEnabled }, [
|
||||||
|
isDeleteEnabled,
|
||||||
|
deleteSelectedLayer,
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
@ -101,7 +101,7 @@ const CurrentImageButtons = () => {
|
|||||||
[isUpscalingEnabled, imageDTO, shouldDisableToolbarButtons, isConnected, isImageViewerActive]
|
[isUpscalingEnabled, imageDTO, shouldDisableToolbarButtons, isConnected, isImageViewerActive]
|
||||||
);
|
);
|
||||||
|
|
||||||
useHotkeys('delete', handleDelete, { enabled: isImageViewerActive }, [imageDTO, isImageViewerActive]);
|
useHotkeys(['delete', 'backspace'], handleDelete, { enabled: isImageViewerActive }, [imageDTO, isImageViewerActive]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
Loading…
Reference in New Issue
Block a user