summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2010-11-14 11:02:18 +0000
committerMatthias Melcher <fltk@matthiasm.com>2010-11-14 11:02:18 +0000
commite7c93053b64e72a0321db09a5675ba58c040567e (patch)
tree040f76fd597ca3490b68dda021911f5656ada2c1 /FL
parente729fccaf9cdc743b34691367161c8c6f0586bcd (diff)
Added visual indication for buttons activated by a keyboard shortcut (STR 2372
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7826 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_Button.H6
1 files changed, 6 insertions, 0 deletions
diff --git a/FL/Fl_Button.H b/FL/Fl_Button.H
index 22280e6a3..6cccd939b 100644
--- a/FL/Fl_Button.H
+++ b/FL/Fl_Button.H
@@ -46,6 +46,8 @@
extern FL_EXPORT Fl_Shortcut fl_old_shortcut(const char*);
+class Fl_Widget_Tracker;
+
/**
\class Fl_Button
\brief Buttons generate callbacks when they are clicked by the user.
@@ -88,6 +90,10 @@ class FL_EXPORT Fl_Button : public Fl_Widget {
protected:
+ static Fl_Widget_Tracker *key_release_tracker;
+ static void key_release_timeout(void*);
+ void simulate_key_action();
+
virtual void draw();
public: