Fixed omnibar Esc shortcut

This commit is contained in:
Hugo Teso 2017-05-18 12:20:53 +02:00
parent f662360524
commit a3adfab8c3

View File

@ -40,7 +40,7 @@ Omnibar::Omnibar(MainWindow *main, QWidget *parent) :
// Esc clears omnibar
QShortcut *clear_shortcut = new QShortcut(QKeySequence(Qt::Key_Escape), this);
connect(clear_shortcut, SIGNAL(activated()), this, SLOT(clear()));
clear_shortcut->setContext(Qt::WidgetShortcut);
clear_shortcut->setContext(Qt::WidgetWithChildrenShortcut);
}
void Omnibar::setupCompleter()