Fix #7438, patch from Stephan.

(Sorry for not waiting for you, I wanted to enter freeze ASAP.)


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38317 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2011-04-08 22:22:52 +00:00
parent 3fd236f0cc
commit 16cfd2ba12

View File

@ -1015,9 +1015,13 @@ void GuiWorkArea::keyPressEvent(QKeyEvent * ev)
// it looks like this is only needed on X11
#ifdef Q_WS_X11
if (qApp->hasPendingEvents() && ev->isAutoRepeat()) {
LYXERR(Debug::KEY, "system is busy: keyPress event ignored");
ev->ignore();
return;
switch (ev->key()) {
case Qt::Key_PageDown:
case Qt::Key_PageUp:
LYXERR(Debug::KEY, "system is busy: scroll key event ignored");
ev->ignore();
return;
}
}
#endif