Remove closing window by pressing Esc

Disable closing using Esc, to avoid closing the window by mistake.
This commit is contained in:
Andreas Rönnquist 2019-01-09 17:58:10 +01:00 committed by Tanu Kaskinen
parent 34cd046afd
commit 1035910f45
1 changed files with 0 additions and 4 deletions

View File

@ -201,10 +201,6 @@ void MainWindow::on_realize() {
bool MainWindow::on_key_press_event(GdkEventKey* event) { 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) { if (event->state & GDK_CONTROL_MASK) {
switch (event->keyval) { switch (event->keyval) {
case GDK_KEY_KP_1: case GDK_KEY_KP_1: