From de5621f2fd3924f27c05459ae555b3bd06c5e584 Mon Sep 17 00:00:00 2001 From: zautrix Date: Thu, 07 Jul 2005 20:46:00 +0000 Subject: fixxx --- (limited to 'korganizer/kotodoview.cpp') diff --git a/korganizer/kotodoview.cpp b/korganizer/kotodoview.cpp index 2c017e1..c2ad886 100644 --- a/korganizer/kotodoview.cpp +++ b/korganizer/kotodoview.cpp @@ -402,6 +402,10 @@ void KOTodoListView::keyReleaseEvent ( QKeyEvent *e ) void KOTodoListView::keyPressEvent ( QKeyEvent * e ) { qApp->processEvents(); + if ( !isVisible() ) { + e->ignore(); + return; + } if ( e->isAutoRepeat() && !mFlagKeyPressed ) { e->ignore(); // qDebug(" ignore %d",e->isAutoRepeat() ); @@ -1599,7 +1603,11 @@ void KOTodoView::keyPressEvent ( QKeyEvent * e ) { // e->ignore(); //return; - //qDebug("KOTodoView::keyPressEvent "); + //qDebug("KOTodoView::keyPressEvent "); + if ( !isVisible() ) { + e->ignore(); + return; + } switch ( e->key() ) { case Qt::Key_Down: case Qt::Key_Up: @@ -1607,6 +1615,12 @@ void KOTodoView::keyPressEvent ( QKeyEvent * e ) break; case Qt::Key_Q: + + + if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton ) { + e->ignore(); + break; + } toggleQuickTodo(); break; case Qt::Key_U: -- cgit v0.9.0.2