2 * \file GuiCommandEdit.cpp
3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS.
13 #include "GuiCommandEdit.h"
23 GuiCommandEdit::GuiCommandEdit(QWidget * parent)
26 setFocusPolicy(Qt::ClickFocus);
30 void GuiCommandEdit::keyPressEvent(QKeyEvent * e)
49 if (e->modifiers() == Qt::AltModifier
50 || e->modifiers() == Qt::MetaModifier) {
57 QLineEdit::keyPressEvent(e);
63 bool GuiCommandEdit::event(QEvent * e)
65 if (e->type() != QEvent::KeyPress)
66 return QLineEdit::event(e);
68 QKeyEvent * ev = (QKeyEvent *)e;
70 if (ev->key() != Qt::Key_Tab)
71 return QLineEdit::event(e);
78 } // namespace frontend
81 #include "GuiCommandEdit_moc.cpp"