diff --git a/CHANGES b/CHANGES index 84ea2295f..a31b176af 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,7 @@ CHANGES IN FLTK 1.3.0 + - added support for shortcuts for Fl_Input_ derived + widgets (STR #1770) - initial setup (STR #1904) CHANGES IN FLTK 1.1.9 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_;} diff --git a/documentation/Fl_Input_.html b/documentation/Fl_Input_.html index 9b7fb34ed..0c6c8fe7b 100644 --- a/documentation/Fl_Input_.html +++ b/documentation/Fl_Input_.html @@ -87,6 +87,7 @@ setting type() to one of the following values: