summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2005-12-15 20:31:35 +0000
committerMatthias Melcher <fltk@matthiasm.com>2005-12-15 20:31:35 +0000
commit3cdd5a4c8d17818848e54c0d33a949ba2963fee2 (patch)
treeb7e9cd38cef310a85390b297235f5e389739f6e9
parentff0733e087106a378a494e6cfdd37806f3426627 (diff)
STR #1122: Fl_Text_Display would throw away all key events if the mouse pointer was outside of the Widget bounds.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4713 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--CHANGES1
-rw-r--r--src/Fl_Text_Display.cxx3
2 files changed, 3 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index 5a5c1de8f..e8620e2c6 100644
--- a/CHANGES
+++ b/CHANGES
@@ -3,6 +3,7 @@ CHANGES IN FLTK 1.1.7
- Documentation fixes (STR #571, STR #648, STR #692, STR
#730, STR #744, STR #745, STR #931, STR #942, STR #960,
STR #969)
+ - Fixed handling of Crl-C in Fl_Text_Display (STR #1122)
- OS X Quartz version now draw a nice resize control (STR
#1099)
- FLTK now enables large file support when available (STR
diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx
index e95f0095e..74e7aebc4 100644
--- a/src/Fl_Text_Display.cxx
+++ b/src/Fl_Text_Display.cxx
@@ -3087,7 +3087,8 @@ int Fl_Text_Display::handle(int event) {
// This isn't very elegant!
if (!Fl::event_inside(text_area.x, text_area.y, text_area.w, text_area.h) &&
!dragging && event != FL_LEAVE && event != FL_ENTER &&
- event != FL_MOVE && event != FL_FOCUS && event != FL_UNFOCUS) {
+ event != FL_MOVE && event != FL_FOCUS && event != FL_UNFOCUS &&
+ event != FL_KEYBOARD && event != FL_KEYUP) {
return Fl_Group::handle(event);
}