#include "dlg_annotation.h" #include void AnnotationDialog::keyPressEvent(QKeyEvent *event) { if (event->key() == Qt::Key_Return && event->modifiers() & Qt::ControlModifier) { event->accept(); accept(); return; } QInputDialog::keyPressEvent(event); }