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 "QCommandEdit.h"
21 QCommandEdit::QCommandEdit(QWidget * parent)
24 setFocusPolicy(Qt::ClickFocus);
28 void QCommandEdit::keyPressEvent(QKeyEvent * e)
44 QLineEdit::keyPressEvent(e);
50 bool QCommandEdit::event(QEvent * e)
52 if (e->type() != QEvent::KeyPress)
53 return QLineEdit::event(e);
55 QKeyEvent * ev = (QKeyEvent *)e;
57 if (ev->key() != Qt::Key_Tab)
58 return QLineEdit::event(e);
64 } // namespace frontend