Remove closing window by pressing Esc
Disable closing using Esc, to avoid closing the window by mistake.
This commit is contained in:
parent
34cd046afd
commit
1035910f45
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue