mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 23:13:48 +02:00
Update chat to close on ESC
This commit is contained in:
parent
51e616d122
commit
2b5759bb39
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue