From 00795e5d73abcde99ae0e42e70bbb77fdd5de0b7 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Thu, 2 Jun 2005 17:22:35 +0000 Subject: [PATCH] Fix bug 106546, Jakubs that is who made the code don't see why it should be there if without it vim-like search still works svn path=/trunk/KDE/kdegraphics/kpdf/; revision=421280 --- ui/pageview.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/pageview.cpp b/ui/pageview.cpp index 854d79ec2..be8887942 100644 --- a/ui/pageview.cpp +++ b/ui/pageview.cpp @@ -588,12 +588,12 @@ void PageView::keyPressEvent( QKeyEvent * e ) { // part doesn't get this key event because of the keyboard grab d->findTimeoutTimer->stop(); // restore normal operation during possible messagebox is displayed - releaseKeyboard(); + //releaseKeyboard(); if ( d->document->continueSearch( PAGEVIEW_SEARCH_ID ) ) d->messageWindow->display( i18n("Text found: \"%1\".").arg(d->typeAheadString.lower()), PageViewMessage::Find, 3000 ); d->findTimeoutTimer->start( 3000, true ); - grabKeyboard(); + // grabKeyboard(); } // esc and return: end search else if( e->key() == Key_Escape || e->key() == Key_Return ) @@ -632,7 +632,7 @@ void PageView::keyPressEvent( QKeyEvent * e ) connect( d->findTimeoutTimer, SIGNAL( timeout() ), this, SLOT( findAheadStop() ) ); } d->findTimeoutTimer->start( 3000, true ); - grabKeyboard(); + // grabKeyboard(); return; } @@ -1845,7 +1845,7 @@ void PageView::findAheadStop() d->typeAheadActive = false; d->typeAheadString = ""; d->messageWindow->display( i18n("Find stopped."), PageViewMessage::Find, 1000 ); - releaseKeyboard(); + //releaseKeyboard(); } void PageView::slotZoom()