Fix bug 4351 at least on Windows and X11.

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
This commit is contained in:
Abdelrazak Younes 2008-01-16 07:47:53 +00:00
parent 0caadfe9d1
commit 5a2231d17b

View 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);