frontend: fix alt+tab
This commit is contained in:
@@ -462,6 +462,17 @@ export default function Editor() {
|
|||||||
}
|
}
|
||||||
}, [windowSize, resetZoom])
|
}, [windowSize, resetZoom])
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
window.addEventListener('blur', () => {
|
||||||
|
setIsChangingBrushSizeByMouse(false)
|
||||||
|
})
|
||||||
|
return () => {
|
||||||
|
window.removeEventListener('blur', () => {
|
||||||
|
setIsChangingBrushSizeByMouse(false)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}, [])
|
||||||
|
|
||||||
const handleEscPressed = () => {
|
const handleEscPressed = () => {
|
||||||
if (isInpainting) {
|
if (isInpainting) {
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user