Fix escape key logic when design mode has output panes open

Task-number: QTCREATORBUG-9985

Change-Id: I6b22c92ac8f780b1a9469e9c2fd4a7cfecfef15f
Reviewed-by: David Schulz <david.schulz@digia.com>