summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--documentation/src/events.dox4
1 files changed, 3 insertions, 1 deletions
diff --git a/documentation/src/events.dox b/documentation/src/events.dox
index a6234d25a..82718bec6 100644
--- a/documentation/src/events.dox
+++ b/documentation/src/events.dox
@@ -161,7 +161,9 @@ it, it will change the event into a \p FL_SHORTCUT event.
FL_KEYBOARD events are also generated by the character palette/map.
To receive \p FL_KEYBOARD events you must also respond to the
-\p FL_FOCUS and \p FL_UNFOCUS events.
+\p FL_FOCUS and \p FL_UNFOCUS events by returning 1. This way
+FLTK knows whether to bother sending your widget keyboard events.
+(Some widgets don't need them, e.g. Fl_Box.)
If you are writing a text-editing widget you may also want to call the
Fl::compose()