When an image inside a task is open inside a fullscreen window, pressing Escape key closes both the image modal and the bar of the task that it belongs to.
This is a weird behaviour since pressing Escape should only close the image modal, and task bar should be closed after another press of Escape.