mirror of
https://github.com/fltk/fltk.git
synced 2026-05-26 10:07:06 +08:00
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:
+1
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user