diff options
| author | Manolo Gouy <Manolo> | 2017-11-17 06:52:27 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2017-11-17 06:52:27 +0000 |
| commit | f300e00f7962742166670cc0738a5e481ab9087e (patch) | |
| tree | 5ff317dc516ead5077c6dbc0f38764c2d1f7d548 /test | |
| parent | 15750ea378ff9f03826b400e217bbc754b16377f (diff) | |
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
Diffstat (limited to 'test')
| -rw-r--r-- | test/subwindow.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/subwindow.cxx b/test/subwindow.cxx index 818596cf9..998813864 100644 --- a/test/subwindow.cxx +++ b/test/subwindow.cxx @@ -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(); |
