mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Make Alt-escape work for search as well
This commit is contained in:
parent
7f23bd4aca
commit
2224e85030
@ -148,6 +148,12 @@ void GuiSearchWidget::keyPressEvent(QKeyEvent * ev)
|
||||
return;
|
||||
}
|
||||
if (ev->key() == Qt::Key_Escape) {
|
||||
Qt::KeyboardModifiers mod = ev->modifiers();
|
||||
if (mod & Qt::AltModifier) {
|
||||
QWidget::keyPressEvent(ev);
|
||||
return;
|
||||
}
|
||||
|
||||
dispatch(FuncRequest(LFUN_DIALOG_HIDE, "findreplace"));
|
||||
view_.setFocus();
|
||||
bv_->buffer().updateBuffer();
|
||||
|
Loading…
Reference in New Issue
Block a user