]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt/GuiCommandEdit.cpp
Make code a bit easier to read
[lyx.git] / src / frontends / qt / GuiCommandEdit.cpp
index 89883da50a2099b65e68f8873a286a13bda03254..a3bf14c9e316ef178555628be7a96fcc0128c076 100644 (file)
@@ -29,7 +29,7 @@ GuiCommandEdit::GuiCommandEdit(QWidget * parent)
 
 void GuiCommandEdit::keyPressEvent(QKeyEvent * e)
 {
-       if (e->modifiers() == Qt::NoModifier) {
+       if (e->modifiers() == Qt::NoModifier || e->modifiers() == Qt::KeypadModifier) {
                switch (e->key()) {
                case Qt::Key_Escape:
                        // emit signal