X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=pv%2Fview%2Fheader.cpp;h=7be491a9d73a9a59d38a126036c7decbcb7b323f;hb=14ca8a8deb6fe6d96567aa11a669dce68af67885;hp=23cbb0ffa79979d08c764e1809c8248cef406ae3;hpb=ba6ec376740b86510493465ce3e4e8bdc7089656;p=pulseview.git diff --git a/pv/view/header.cpp b/pv/view/header.cpp index 23cbb0f..7be491a 100644 --- a/pv/view/header.cpp +++ b/pv/view/header.cpp @@ -299,16 +299,16 @@ void Header::keyPressEvent(QKeyEvent *e) { assert(e); - switch (e->key()) - { - case Qt::Key_Delete: + if (e->key() == Qt::Key_Delete) { for (const shared_ptr r : _view) if (r->selected()) r->delete_pressed(); - break; - } } + else if (e->key() == Qt::Key_G && e->modifiers() == Qt::ControlModifier) + on_group(); + else if (e->key() == Qt::Key_U && e->modifiers() == Qt::ControlModifier) + on_ungroup(); } void Header::on_signals_moved()