File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
invokeai/frontend/web/src/features/gallery/components/ImageViewer Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ export const CompareToolbar = memo(() => {
28
28
const swapImages = useCallback ( ( ) => {
29
29
dispatch ( comparedImagesSwapped ( ) ) ;
30
30
} , [ dispatch ] ) ;
31
+ useHotkeys ( 'c' , swapImages , [ swapImages ] ) ;
31
32
const toggleComparisonFit = useCallback ( ( ) => {
32
33
dispatch ( comparisonFitChanged ( comparisonFit === 'contain' ? 'fill' : 'contain' ) ) ;
33
34
} , [ dispatch , comparisonFit ] ) ;
@@ -42,8 +43,8 @@ export const CompareToolbar = memo(() => {
42
43
< Flex gap = { 2 } marginInlineEnd = "auto" >
43
44
< IconButton
44
45
icon = { < PiSwapBold /> }
45
- aria-label = { t ( 'gallery.swapImages' ) }
46
- tooltip = { t ( 'gallery.swapImages' ) }
46
+ aria-label = { ` ${ t ( 'gallery.swapImages' ) } (C)` }
47
+ tooltip = { ` ${ t ( 'gallery.swapImages' ) } (C)` }
47
48
onClick = { swapImages }
48
49
/>
49
50
{ comparisonMode !== 'side-by-side' && (
You can’t perform that action at this time.
0 commit comments