]> git.lyx.org Git - features.git/commitdiff
Fix bug 4351 at least on Windows and X11.
authorAbdelrazak Younes <younes@lyx.org>
Wed, 16 Jan 2008 07:47:53 +0000 (07:47 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Wed, 16 Jan 2008 07:47:53 +0000 (07:47 +0000)
http://bugzilla.lyx.org/show_bug.cgi?id=4351

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22596 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiView.cpp

index e734b1cfb683640006f0dc46ebd9c1ac93201e46..8668334e51cc51dfe82673b2b55e70744e721391 100644 (file)
@@ -587,6 +587,10 @@ bool GuiView::event(QEvent * 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.
+                       return QMainWindow::event(e);
+
                theLyXFunc().setLyXView(this);
                KeySymbol sym;
                setKeySymbol(&sym, ke);