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

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 ) ...@@ -307,7 +307,6 @@ void DataControlPlugin::slotKeyEvent( QKeyEvent* _event )
switch (_event->key()) { switch (_event->key()) {
case Qt::Key_Delete : case Qt::Key_Delete :
std::cerr << "Todo : Datacontrol Plugin: got delete key ..." << std::endl;
slotPopupRemove(); slotPopupRemove();
return; return;
default: default:
......
...@@ -9,8 +9,10 @@ DatacontrolToolboxWidget::DatacontrolToolboxWidget(QWidget* _parent) ...@@ -9,8 +9,10 @@ DatacontrolToolboxWidget::DatacontrolToolboxWidget(QWidget* _parent)
void DatacontrolToolboxWidget::keyPressEvent (QKeyEvent * _event ) { void DatacontrolToolboxWidget::keyPressEvent (QKeyEvent * _event ) {
if ( _event->key() == Qt::Key_Escape ) // Only react on our own key events
_event->ignore(); if ( ( (_event->modifiers() & Qt::ControlModifier) && ( _event->key() == Qt::Key_A ) ) ||
else ( _event->key() == Qt::Key_Delete ) )
emit keyEvent( _event ); 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