When I press Esc after clicking on an area to fill, the dialog with the progress bar disappears. Usually, I would do this if the computation isn't instantaneous, which indicates there's a slight gap. In that case, the Flood fill should be cancelled/ undone as well. However, this is currently not the case on Windows 22H2. In Photo 2.0.0.