diff --git a/src/frontend/netdetails/netdetail.cpp b/src/frontend/netdetails/netdetail.cpp
index 176d1002..4604d6e2 100644
--- a/src/frontend/netdetails/netdetail.cpp
+++ b/src/frontend/netdetails/netdetail.cpp
@@ -169,11 +169,7 @@ void NetDetail::initUI()
securityPage = new SecurityPage(this);
createNetPage = new CreatNetPage(this);
- detailPage->installEventFilter(this);
- ipv4Page->installEventFilter(this);
- ipv6Page->installEventFilter(this);
- securityPage->installEventFilter(this);
- createNetPage->installEventFilter(this);
+ this->installEventFilter(this);
centerWidget = new QWidget(this);
bottomWidget = new QWidget(this);
@@ -929,8 +925,10 @@ bool NetDetail::eventFilter(QObject *w, QEvent *event)
emit confimBtn->clicked();
}
return true;
+ } else if (mEvent->key() == Qt::Key_Escape) {
+ close();
+ return true;
}
-
}
return QWidget::eventFilter(w, event);
}
diff --git a/translations/kylin-nm_zh_CN.qm b/translations/kylin-nm_zh_CN.qm
index acb345c3..bd54f10a 100644
Binary files a/translations/kylin-nm_zh_CN.qm and b/translations/kylin-nm_zh_CN.qm differ
diff --git a/translations/kylin-nm_zh_CN.ts b/translations/kylin-nm_zh_CN.ts
index 957563ed..b83b4f4d 100644
--- a/translations/kylin-nm_zh_CN.ts
+++ b/translations/kylin-nm_zh_CN.ts
@@ -644,7 +644,7 @@
- 添加有线连接
+ 添加有线网络