3 * Copyright 2002 the LyX Team
4 * Read the file COPYING
6 * \author John Levon <moz@compsoc.man.ac.uk>
9 #include "QCommandEdit.h"
11 QCommandEdit::QCommandEdit(QWidget * parent)
14 setFocusPolicy(QWidget::ClickFocus);
18 void QCommandEdit::keyPressEvent(QKeyEvent * e)
34 if (cursorPosition() == text().length())
37 QLineEdit::keyPressEvent(e);
41 QLineEdit::keyPressEvent(e);