Fix buffer-next/previous when called with Ctrl-Tab.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22621 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-01-18 08:26:38 +00:00
parent 1fe3f59886
commit 33b1ab9a9a

View File

@ -514,7 +514,8 @@ bool GuiWorkArea::event(QEvent * e)
// which are otherwise reserved to focus switching between controls
// within a dialog.
QKeyEvent * ke = static_cast<QKeyEvent*>(e);
if (ke->key() != Qt::Key_Tab && ke->key() != Qt::Key_Backtab)
if ((ke->key() != Qt::Key_Tab && ke->key() != Qt::Key_Backtab)
|| ke->modifiers() & Qt::ControlModifier)
return QAbstractScrollArea::event(e);
keyPressEvent(ke);
return true;