Allowed the escape key to close the chat tab while still ignoring clicks outside the chat tab.