From e517c32d97c3872da3a480a09557addb30b82304 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Tue, 10 Sep 2024 23:08:32 +1000 Subject: [PATCH] fix(ui): brush size and layer cycle hotkeys conflict Closes #6829 --- .../src/features/controlLayers/hooks/useNextPrevEntity.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/invokeai/frontend/web/src/features/controlLayers/hooks/useNextPrevEntity.ts b/invokeai/frontend/web/src/features/controlLayers/hooks/useNextPrevEntity.ts index 430566a9c38..b50a8d2dec7 100644 --- a/invokeai/frontend/web/src/features/controlLayers/hooks/useNextPrevEntity.ts +++ b/invokeai/frontend/web/src/features/controlLayers/hooks/useNextPrevEntity.ts @@ -61,16 +61,19 @@ export const useNextPrevEntityHotkeys = () => { useHotkeys( // “ === alt+[ - ['alt+[', '“'], + ['“'], selectPrevEntity, { preventDefault: true, ignoreModifiers: true }, [selectPrevEntity] ); + + useHotkeys(['alt+['], selectPrevEntity, { preventDefault: true }, [selectPrevEntity]); useHotkeys( // ‘ === alt+] - ['alt+]', '‘'], + ['‘'], selectNextEntity, { preventDefault: true, ignoreModifiers: true }, [selectNextEntity] ); + useHotkeys(['alt+]'], selectNextEntity, { preventDefault: true }, [selectNextEntity]); };