Completion popup menu did not respond to Esc.

https://www.mail-archive.com/lyx-devel@lists.lyx.org/msg207346.html
This commit is contained in:
Pavel Sanda 2018-12-29 14:36:38 +01:00
parent da273a944f
commit 33284ee5c8

View File

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