Commit 8cf8652c authored by Thorsten Zachmann's avatar Thorsten Zachmann

o set accept or ignore on the keyPressEvent if it is taken or ignored.

svn path=/trunk/koffice/; revision=648359
parent c9fa3562
......@@ -298,11 +298,13 @@ void KoInteractionTool::mouseDoubleClickEvent( KoPointerEvent *event ) {
}
void KoInteractionTool::keyPressEvent(QKeyEvent *event) {
event->ignore();
if(m_currentStrategy &&
(event->key() == Qt::Key_Control ||
event->key() == Qt::Key_Alt || event->key() == Qt::Key_Shift ||
event->key() == Qt::Key_Meta)) {
m_currentStrategy->handleMouseMove( d->lastPoint, event->modifiers() );
event->accept();
} else if(m_currentStrategy == 0) {
double x=0.0, y=0.0;
if(event->key() == Qt::Key_Left)
......@@ -345,6 +347,7 @@ void KoInteractionTool::keyPressEvent(QKeyEvent *event) {
m_canvas->addCommand(d->moveCommand);
}
d->lastUsedMoveCommand = QTime::currentTime();
event->accept();
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment