Make Alt-escape work for search as well

This commit is contained in:
Richard Kimberly Heck 2023-07-26 16:52:17 -04:00
parent 7f23bd4aca
commit 2224e85030

View File

@ -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();