commit 33284ee5c8618e8a6aed00259e7ac0fd305332ad
Author: Pavel Sanda <sa...@lyx.org>
Date:   Sat Dec 29 14:36:38 2018 +0100

    Completion popup menu did not respond to Esc.
    
    https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg207346.html
---
 src/frontends/qt4/GuiCompleter.cpp |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/frontends/qt4/GuiCompleter.cpp 
b/src/frontends/qt4/GuiCompleter.cpp
index e29bfda..1c91fb7 100644
--- a/src/frontends/qt4/GuiCompleter.cpp
+++ b/src/frontends/qt4/GuiCompleter.cpp
@@ -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;
                }
        }

Reply via email to