Proper return value from test window::handle() when the event is not processed.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12562 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy
2017-11-17 06:52:27 +00:00
parent 15750ea378
commit f300e00f79
+1 -1
View File
@@ -94,7 +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;
if (Fl::event_key() == FL_Escape || Fl::event_command()) return 0;
key = Fl::event_text()[0];
cx = Fl::event_x();
cy = Fl::event_y();