Update chat to close on ESC

This commit is contained in:
Ryan Huffman 2014-09-04 10:53:51 -07:00
parent 51e616d122
commit 2b5759bb39

View file

@ -110,6 +110,7 @@ ChatWindow::~ChatWindow() {
void ChatWindow::keyPressEvent(QKeyEvent* event) {
if (event->key() == Qt::Key_Escape) {
Application::getInstance()->getWindow()->activateWindow();
hide();
} else {
QWidget::keyPressEvent(event);
}