Commit 6f8ebc69 authored by Jan Möbius's avatar Jan Möbius

Further improvements to datacontrol widget key handling

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@4130 383ad7c9-94d9-4d36-a494-682f7c89f535
parent a8f7b166
......@@ -307,7 +307,6 @@ void DataControlPlugin::slotKeyEvent( QKeyEvent* _event )
switch (_event->key()) {
case Qt::Key_Delete :
std::cerr << "Todo : Datacontrol Plugin: got delete key ..." << std::endl;
slotPopupRemove();
return;
default:
......
......@@ -9,8 +9,10 @@ DatacontrolToolboxWidget::DatacontrolToolboxWidget(QWidget* _parent)
void DatacontrolToolboxWidget::keyPressEvent (QKeyEvent * _event ) {
if ( _event->key() == Qt::Key_Escape )
_event->ignore();
else
// Only react on our own key events
if ( ( (_event->modifiers() & Qt::ControlModifier) && ( _event->key() == Qt::Key_A ) ) ||
( _event->key() == Qt::Key_Delete ) )
emit keyEvent( _event );
else
_event->ignore();
}
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