ide: Fixed stuck Edit menu when hitting escape on output panel with no other window