From e7356529bb2755b417bb113e16a7236fbf70a104 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Thu, 26 Jan 2017 08:13:19 +0000 Subject: Allow ESC to close window and don't transmit CTRL character to fl_draw() git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12167 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- test/subwindow.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/test/subwindow.cxx b/test/subwindow.cxx index 4820e8c11..818596cf9 100644 --- a/test/subwindow.cxx +++ b/test/subwindow.cxx @@ -94,6 +94,7 @@ int testwindow::handle(int e) { if (e == FL_FOCUS) return 1; if (e == FL_PUSH) {Fl::focus(this); return 1;} if (e == FL_KEYBOARD && Fl::event_text()[0]) { + if (Fl::event_key() == FL_Escape || Fl::event_ctrl()) return 0; key = Fl::event_text()[0]; cx = Fl::event_x(); cy = Fl::event_y(); -- cgit v1.2.3