]> git.lyx.org Git - features.git/commitdiff
Completion popup menu did not respond to Esc.
authorPavel Sanda <sanda@lyx.org>
Sat, 29 Dec 2018 13:36:38 +0000 (14:36 +0100)
committerPavel Sanda <sanda@lyx.org>
Sat, 29 Dec 2018 13:36:38 +0000 (14:36 +0100)
https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg207346.html

src/frontends/qt4/GuiCompleter.cpp

index e29bfdab874dc3decb3b24d4369fc28ae48b15ee..1c91fb78a609e89585f964817c2af56b2ac9946d 100644 (file)
@@ -216,6 +216,11 @@ bool GuiCompleter::eventFilter(QObject * watched, QEvent * e)
                        tab();
                        ke->accept();
                        return true;
+               case Qt::Key_Escape:
+                       hidePopup();
+                       hideInline();
+                       updateVisibility(false, false);
+                       return true;
                default: break;
                }
        }