diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2007-11-19 16:21:48 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2007-11-19 16:21:48 +0000 |
| commit | f4b75fc310cb5107c6b435a19b8fc656a7755f4f (patch) | |
| tree | 282db9152dcf5d74e09a30806ce91b671eabd91c /FL | |
| parent | d2242d59ef11429f02b3c032d4bd786e4c3dafc9 (diff) | |
STR 1745: in fl_ask, if the rightmost button has a shortcut in its label, the default 'Escape' is overridden.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5982 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_Widget.H | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/FL/Fl_Widget.H b/FL/Fl_Widget.H index a51d66947..f4c7b1d89 100644 --- a/FL/Fl_Widget.H +++ b/FL/Fl_Widget.H @@ -188,6 +188,7 @@ public: void do_callback(Fl_Widget* o,void* arg=0) {callback_(o,arg); if (callback_ != default_callback) clear_changed();} void do_callback(Fl_Widget* o,long arg) {callback_(o,(void*)arg); if (callback_ != default_callback) clear_changed();} int test_shortcut(); + static char label_shortcut(const char *t); static int test_shortcut(const char*); int contains(const Fl_Widget*) const ; int inside(const Fl_Widget* o) const {return o ? o->contains(this) : 0;} |
