From 98eb763a1423b564d36ea56b21654ee642fb13c6 Mon Sep 17 00:00:00 2001 From: nils Date: Fri, 5 Oct 2012 12:57:49 +0000 Subject: now find previous works with Shift+F3 git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@993 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- findwidget.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/findwidget.cpp b/findwidget.cpp index cc1f73d..f2f9bf1 100644 --- a/findwidget.cpp +++ b/findwidget.cpp @@ -97,11 +97,12 @@ void FindWidget::keyPressEvent( QKeyEvent* e ) case Qt::Key_Escape: this->slotClose(); break; - case Qt::Key_F3 + Qt::SHIFT: - this->slotFindPrevious(); - break; case Qt::Key_F3: - this->slotFindNext(); + if (e->modifiers() & Qt::ShiftModifier) { + this->slotFindPrevious(); + } else { + this->slotFindNext(); + } break; } } -- cgit v1.2.3