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)
32 if (e->modifiers() == Qt::NoModifier) {
54 QLineEdit::keyPressEvent(e);
58 bool GuiCommandEdit::event(QEvent * e)
60 if (e->type() != QEvent::KeyPress)
61 return QLineEdit::event(e);
63 QKeyEvent * ev = (QKeyEvent *)e;
65 if (ev->key() != Qt::Key_Tab)
66 return QLineEdit::event(e);
73 } // namespace frontend
76 #include "moc_GuiCommandEdit.cpp"