From 85ac3f0dc4444a5d801a19e59edbcf57f0bfc674 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Wed, 9 Jan 2008 07:19:26 +0000 Subject: [PATCH] More whitespace. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22451 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiSelectionManager.cpp | 38 +++++++++++------------ 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/frontends/qt4/GuiSelectionManager.cpp b/src/frontends/qt4/GuiSelectionManager.cpp index 4aa730e0ac..7dcf33fb03 100644 --- a/src/frontends/qt4/GuiSelectionManager.cpp +++ b/src/frontends/qt4/GuiSelectionManager.cpp @@ -238,25 +238,25 @@ bool GuiSelectionManager::eventFilter(QObject * obj, QEvent * event) Qt::KeyboardModifiers const keyModifiers = keyEvent->modifiers(); //Enter key without modifier will add current item. //Ctrl-Enter will add it and close the dialog. - //This is designed to work both with the main enter key - //and the one on the numeric keypad. - if ((keyPressed == Qt::Key_Enter || keyPressed == Qt::Key_Return) && - //We want one or both of Control and Keypad, and nothing else - //(KeypadModifier is what you get if you use the Enter key on the - //numeric keypad.) - (!keyModifiers || - (keyModifiers == Qt::ControlModifier) || - (keyModifiers == Qt::KeypadModifier) || - (keyModifiers == (Qt::ControlModifier | Qt::KeypadModifier)) - ) - ) { - if (addPB->isEnabled()) { - addPB_clicked(); - okHook(); //signal - } - event->accept(); - return true; - } + //This is designed to work both with the main enter key + //and the one on the numeric keypad. + if ((keyPressed == Qt::Key_Enter || keyPressed == Qt::Key_Return) && + //We want one or both of Control and Keypad, and nothing else + //(KeypadModifier is what you get if you use the Enter key on the + //numeric keypad.) + (!keyModifiers || + (keyModifiers == Qt::ControlModifier) || + (keyModifiers == Qt::KeypadModifier) || + (keyModifiers == (Qt::ControlModifier | Qt::KeypadModifier)) + ) + ) { + if (addPB->isEnabled()) { + addPB_clicked(); + okHook(); //signal + } + event->accept(); + return true; + } } else if (obj == selectedLV) { //Delete or backspace key will delete current item //...with control modifier will clear the list -- 2.39.5