summaryrefslogtreecommitdiff
path: root/FL/Fl_Widget.H
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2010-10-31 20:47:50 +0000
committerMatthias Melcher <fltk@matthiasm.com>2010-10-31 20:47:50 +0000
commit1e26ada2c5be6bf9ca45884bebc0228319c3c226 (patch)
treef459329e0cf9ff0dc310ab9166214ccb23c1fae2 /FL/Fl_Widget.H
parent48f107775d2a1363522aa96e92d07c876a6f759a (diff)
Fixed tab key navigation to inactive widgets (STR #2420), fixed a few pedantic warnings
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7788 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/Fl_Widget.H')
-rw-r--r--FL/Fl_Widget.H4
1 files changed, 3 insertions, 1 deletions
diff --git a/FL/Fl_Widget.H b/FL/Fl_Widget.H
index 39ecf9de2..0b89ad9eb 100644
--- a/FL/Fl_Widget.H
+++ b/FL/Fl_Widget.H
@@ -752,7 +752,9 @@ public:
&& visible()) but is faster.
\retval 0 if the widget takes no events
*/
- unsigned int takesevents() const {return !(flags_&(INACTIVE|INVISIBLE|OUTPUT));}
+ unsigned int takesevents() const {
+ return !output() && active_r() && visible_r();
+ }
/**
Checks if the widget value changed since the last callback.