mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
GuiSearch: catch Esc
This commit is contained in:
parent
78ce7227f7
commit
e5958e3ca8
@ -101,6 +101,10 @@ void GuiSearchWidget::keyPressEvent(QKeyEvent * ev)
|
||||
findClicked(ev->modifiers() == Qt::ShiftModifier);
|
||||
return;
|
||||
}
|
||||
if (ev->key() == Qt::Key_Escape) {
|
||||
dispatch(FuncRequest(LFUN_DIALOG_TOGGLE, "findreplace"));
|
||||
return;
|
||||
}
|
||||
|
||||
// we catch the key sequences for forward and backwards search
|
||||
if (sym.isOK()) {
|
||||
|
Loading…
Reference in New Issue
Block a user