Pressing escape to leave fullscreen no longer breaks tools

#1866