X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fmainwindow.cpp;h=2823adc0ec08e1f9f3f341ef7e52415c506471b0;hp=51ebda8369a05be3ec1d3555cb9e0e5f1bb24015;hb=6b8b739df2fedddbf3f5838d64442e073ba43484;hpb=fae7037ab7ba0422c9f6d8a0523fd53a1b9cedfe diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index 51ebda83..2823adc0 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -306,6 +306,9 @@ shared_ptr MainWindow::add_subwindow( dock->findChildren // clazy:exclude=detaching-temporary ("qt_dockwidget_closebutton").front(); + // Allow all subwindows to be closed via ESC. + close_btn->setShortcut(QKeySequence(Qt::Key_Escape)); + connect(close_btn, SIGNAL(clicked(bool)), this, SLOT(on_sub_window_close_clicked()));