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"
18 QCommandEdit::QCommandEdit(QWidget * parent)
21 setFocusPolicy(QWidget::ClickFocus);
25 void QCommandEdit::keyPressEvent(QKeyEvent * e)
41 QLineEdit::keyPressEvent(e);
47 bool QCommandEdit::event(QEvent * e)
49 if (e->type() != QEvent::KeyPress)
50 return QLineEdit::event(e);
52 QKeyEvent * ev = (QKeyEvent *)e;
54 if (ev->key() != Key_Tab)
55 return QLineEdit::event(e);
61 } // namespace frontend