Do not quit on Esc key.

This commit is contained in:
Sanel Zukan 2009-10-05 11:50:28 +00:00
parent 531ef0809e
commit e694d874fc

View File

@ -318,6 +318,13 @@ int Panel::handle(int e) {
} }
return 1; return 1;
case FL_KEYBOARD:
/* do not quit on Esc key */
if(Fl::event_key() == FL_Escape)
return 1;
/* fallthrough */
} }
return Fl_Window::handle(e); return Fl_Window::handle(e);