]> git.lyx.org Git - features.git/commitdiff
Fixing inline completion, Vincent strikes back :)
authorPavel Sanda <sanda@lyx.org>
Sun, 7 Sep 2008 15:54:06 +0000 (15:54 +0000)
committerPavel Sanda <sanda@lyx.org>
Sun, 7 Sep 2008 15:54:06 +0000 (15:54 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26327 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiWorkArea.cpp

index 5c8e37b5c3425db68408a7edd9fcb3df2a9125d3..244a107010ce7ebb3d6d5294c69dfedc1e10db69 100644 (file)
@@ -847,7 +847,8 @@ void GuiWorkArea::keyPressEvent(QKeyEvent * ev)
        }
        
        // intercept keys for the completion
-       if (completer_->popupVisible() && ev->key() == Qt::Key_Tab) {
+       if ((completer_->popupVisible() || completer_->inlineVisible())
+                                       && ev->key() == Qt::Key_Tab) {
                completer_->tab();
                ev->accept();
                return;