On Wed, May 16, 2007 at 11:57:51PM +0200, Peter Kümmel wrote:
>  void GuiWorkArea::keyPressEvent(QKeyEvent * e)
>  {
> +     // do nothing if there are other events
> +     // (the auto repeated events come too fast)
> +     if(QCoreApplication::hasPendingEvents()) {
> +             LYXERR(Debug::KEY) << BOOST_CURRENT_FUNCTION
> +             << endl << "key ignored" << endl;
> +             e->ignore();
> +             return;
> +     }

Have you tried typing _really_ fast?

Do all keys still come through? If so, the idea looks good, although
I'd restrict it to PageUp/Down events.

Andre'

Reply via email to