frontend: fix alt+tab
This commit is contained in:
parent
3c87b050d9
commit
8939e086ef
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user