aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/qquickcombobox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/templates/qquickcombobox.cpp')
-rw-r--r--src/templates/qquickcombobox.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/templates/qquickcombobox.cpp b/src/templates/qquickcombobox.cpp
index f4cb17af..dfb01e83 100644
--- a/src/templates/qquickcombobox.cpp
+++ b/src/templates/qquickcombobox.cpp
@@ -711,6 +711,10 @@ void QQuickComboBox::keyPressEvent(QKeyEvent *event)
return;
switch (event->key()) {
+ case Qt::Key_Escape:
+ if (d->isPopupVisible())
+ event->accept();
+ break;
case Qt::Key_Space:
if (!event->isAutoRepeat())
setPressed(true);