[pulseaudio-commits] src/mainwindow.cc

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Feb 9 07:24:30 UTC 2019


 src/mainwindow.cc |    4 ----
 1 file changed, 4 deletions(-)

New commits:
commit 1035910f45626c6ad77681f212d4a3123f0b985d
Author: Andreas Rönnquist <andreas at ronnquist.net>
Date:   Wed Jan 9 17:58:10 2019 +0100

    Remove closing window by pressing Esc
    
    Disable closing using Esc, to avoid closing the window by mistake.

diff --git a/src/mainwindow.cc b/src/mainwindow.cc
index 3f5bf2b..6fa3480 100644
--- a/src/mainwindow.cc
+++ b/src/mainwindow.cc
@@ -201,10 +201,6 @@ void MainWindow::on_realize() {
 
 bool MainWindow::on_key_press_event(GdkEventKey* event) {
 
-    if (GDK_KEY_Escape == event->keyval) {
-        Gtk::Main::quit();
-        return true;
-    }
     if (event->state & GDK_CONTROL_MASK) {
         switch (event->keyval) {
             case GDK_KEY_KP_1:



More information about the pulseaudio-commits mailing list