diff options
| author | Manolo Gouy <Manolo> | 2017-01-26 08:13:19 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2017-01-26 08:13:19 +0000 |
| commit | e7356529bb2755b417bb113e16a7236fbf70a104 (patch) | |
| tree | d14fe996733e1904f2c04b5a44e04e1b7f117c76 /test | |
| parent | 782d34fc8f518582b9dc30305cc526709673ddf1 (diff) | |
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
Diffstat (limited to 'test')
| -rw-r--r-- | test/subwindow.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
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(); |
