mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
feat(ui): bbox hotkey is c
This commit is contained in:
@@ -20,12 +20,12 @@ export const ToolBboxButton = memo(() => {
|
|||||||
return isTransforming || isFiltering || isStaging;
|
return isTransforming || isFiltering || isStaging;
|
||||||
}, [isFiltering, isStaging, isTransforming]);
|
}, [isFiltering, isStaging, isTransforming]);
|
||||||
|
|
||||||
useHotkeys('q', selectBbox, { enabled: !isDisabled || isSelected }, [selectBbox, isSelected, isDisabled]);
|
useHotkeys('c', selectBbox, { enabled: !isDisabled || isSelected }, [selectBbox, isSelected, isDisabled]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<IconButton
|
<IconButton
|
||||||
aria-label={`${t('controlLayers.tool.bbox')} (Q)`}
|
aria-label={`${t('controlLayers.tool.bbox')} (C)`}
|
||||||
tooltip={`${t('controlLayers.tool.bbox')} (Q)`}
|
tooltip={`${t('controlLayers.tool.bbox')} (C)`}
|
||||||
icon={<PiBoundingBoxBold />}
|
icon={<PiBoundingBoxBold />}
|
||||||
colorScheme={isSelected ? 'invokeBlue' : 'base'}
|
colorScheme={isSelected ? 'invokeBlue' : 'base'}
|
||||||
variant="outline"
|
variant="outline"
|
||||||
|
|||||||
Reference in New Issue
Block a user