]> git.lyx.org Git - features.git/commitdiff
Allow use of Tab keys when no document's open.
authorAbdelrazak Younes <younes@lyx.org>
Wed, 16 Jan 2008 08:04:49 +0000 (08:04 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Wed, 16 Jan 2008 08:04:49 +0000 (08:04 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22597 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiView.cpp

index 8668334e51cc51dfe82673b2b55e70744e721391..c07aa04ec0aedc20424c0bd294ad51f41dbb3bdd 100644 (file)
@@ -584,13 +584,16 @@ bool GuiView::event(QEvent * e)
                        // Nothing special to do.
                        return QMainWindow::event(e);
 
-               // Allow processing of shortcuts that are allowed even when no Buffer
-               // is viewed.
                QKeyEvent * ke = static_cast<QKeyEvent*>(e);
-               if (ke->modifiers() & Qt::AltModifier)
-                       // Let Qt handle menu access.
+
+               // Let Qt handle menu access and the Tab keys to navigate keys to navigate
+               // between controls.
+               if (ke->modifiers() & Qt::AltModifier || ke->key() == Qt::Key_Tab 
+                       || ke->key() == Qt::Key_Backtab)
                        return QMainWindow::event(e);
 
+               // Allow processing of shortcuts that are allowed even when no Buffer
+               // is viewed.
                theLyXFunc().setLyXView(this);
                KeySymbol sym;
                setKeySymbol(&sym, ke);