diff --git a/CHANGES b/CHANGES index a31b176af..e8b5cfa81 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,7 @@ CHANGES IN FLTK 1.3.0 - - added support for shortcuts for Fl_Input_ derived + - added support for shortcuts for Fl_Input_, + Fl_Value_Input, and Fl_Text_Display derived widgets (STR #1770) - initial setup (STR #1904) diff --git a/FL/Fl_Text_Display.H b/FL/Fl_Text_Display.H index 7e94ef001..fa7f0d0c4 100644 --- a/FL/Fl_Text_Display.H +++ b/FL/Fl_Text_Display.H @@ -119,6 +119,9 @@ class FL_EXPORT Fl_Text_Display: public Fl_Group { int position_style(int lineStartPos, int lineLen, int lineIndex, int dispIndex); + 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_;} @@ -280,6 +283,8 @@ class FL_EXPORT Fl_Text_Display: public Fl_Group { int display_insert_position_hint; struct { int x, y, w, h; } text_area; + int shortcut_; + uchar textfont_; uchar textsize_; unsigned textcolor_; diff --git a/FL/Fl_Value_Input.H b/FL/Fl_Value_Input.H index 5f29dd155..3e0110040 100644 --- a/FL/Fl_Value_Input.H +++ b/FL/Fl_Value_Input.H @@ -47,6 +47,9 @@ public: void soft(char s) {soft_ = s;} char soft() const {return soft_;} + int shortcut() const {return input.shortcut();} + void shortcut(int s) {input.shortcut(s);} + Fl_Font textfont() const {return input.textfont();} void textfont(uchar s) {input.textfont(s);} uchar textsize() const {return input.textsize();} diff --git a/documentation/Fl_Text_Editor.html b/documentation/Fl_Text_Editor.html index 2714fb103..ced3ac968 100644 --- a/documentation/Fl_Text_Editor.html +++ b/documentation/Fl_Text_Editor.html @@ -78,6 +78,7 @@ class.
Removes a single key binding from the text editor or list. +
The second form sets the shortcut key to key. +