From 1035910f45626c6ad77681f212d4a3123f0b985d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20R=C3=B6nnquist?= Date: Wed, 9 Jan 2019 17:58:10 +0100 Subject: [PATCH] Remove closing window by pressing Esc Disable closing using Esc, to avoid closing the window by mistake. --- src/mainwindow.cc | 4 ---- 1 file changed, 4 deletions(-) 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: