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

New commits:
commit 1035910f45626c6ad77681f212d4a3123f0b985d
Author: Andreas Rönnquist <andr...@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:

_______________________________________________
pulseaudio-commits mailing list
pulseaudio-commits@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-commits

Reply via email to