changeset 464:357e9dae8d7a

Fix: recover page focus when clicking-out of a widget. (try 2)
author Jorge Arellano Cid <jcid@dillo.org>
date Wed, 10 Dec 2008 15:39:01 -0300
parents 77bc50c33f5c
children 33593bfe1aea
files dw/fltkviewbase.cc
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/dw/fltkviewbase.cc	Mon Dec 08 19:47:26 2008 -0300
+++ b/dw/fltkviewbase.cc	Wed Dec 10 15:39:01 2008 -0300
@@ -205,8 +205,8 @@
                                  getDwButtonState (), event_button ());
       //printf ("PUSH => %s\n", processed ? "true" : "false");
       if (processed) {
-         /* pressed dw content; fltk widgets should no longer have focus */
-         ::fltk::focus(NULL);
+         /* pressed dw content; give focus to the view */
+         ::fltk::focus(this);
       }
       return processed ? true : Group::handle (event);