summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/subwindow.cxx1
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();