diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2008-04-22 23:33:17 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2008-04-22 23:33:17 +0000 |
| commit | 8198e51799ba715d27e82b276b93cb39918d3361 (patch) | |
| tree | b21114724d43324e86450d6d43ca56527b14ff7c /FL | |
| parent | 6a143b1f61533c03ef20a8f2b82d2c90180055bc (diff) | |
Added support for keyboard shortcuts to Fl_Input_ derived widgets (STR #1770). Code added for Fluid. Documentation updated.
This commit must be considered partial because there is no shortcut handling for Fl_Text_Display derived widgets or Fl_Value_Input which is derived form Fl_Valuator.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6109 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_Input_.H | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/FL/Fl_Input_.H b/FL/Fl_Input_.H index df52e36a0..985d74f99 100644 --- a/FL/Fl_Input_.H +++ b/FL/Fl_Input_.H @@ -58,6 +58,7 @@ class FL_EXPORT Fl_Input_ : public Fl_Widget { int xscroll_, yscroll_; int mu_p; int maximum_size_; + int shortcut_; uchar erase_cursor_only; uchar textfont_; @@ -119,6 +120,9 @@ public: int undo(); int copy_cuts(); + int shortcut() const {return shortcut_;} + void shortcut(int s) {shortcut_ = s;} + Fl_Font textfont() const {return (Fl_Font)textfont_;} void textfont(uchar s) {textfont_ = s;} uchar textsize() const {return textsize_;} |
