diff options
| author | Greg Ercolano <erco@seriss.com> | 2020-07-06 21:31:25 -0700 |
|---|---|---|
| committer | Greg Ercolano <erco@seriss.com> | 2020-07-06 21:31:25 -0700 |
| commit | 2b88ce521dbdb9bbac2c89d8fa2e23e7270d1723 (patch) | |
| tree | 6a1aab697876f01bcb3fe0710eb66195a6c264bc | |
| parent | 2f0be9d53711ec287daedbacd1ceb2ee48bca3ff (diff) | |
Shortcut tooltip elaborates on how to clear shortcut
A user was having trouble figuring this out on fltk.general,
seemed like a tooltip could have helped, so added it.
| -rw-r--r-- | fluid/widget_panel.cxx | 2 | ||||
| -rw-r--r-- | fluid/widget_panel.fl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/fluid/widget_panel.cxx b/fluid/widget_panel.cxx index 7ebb3c538..0695342ab 100644 --- a/fluid/widget_panel.cxx +++ b/fluid/widget_panel.cxx @@ -413,7 +413,7 @@ ive to the origin at construction time"); } // Fl_Group* o { // This is a special button that grabs keystrokes directly Shortcut_Button* o = new Shortcut_Button(95, 210, 310, 20, "Shortcut:"); - o->tooltip("The shortcut key for the widget."); + o->tooltip("The shortcut key for the widget.\nUse 'Backspace' key to clear."); o->box(FL_DOWN_BOX); o->color(FL_BACKGROUND2_COLOR); o->selection_color(FL_BACKGROUND2_COLOR); diff --git a/fluid/widget_panel.fl b/fluid/widget_panel.fl index 0ccb9763e..87d8e53d0 100644 --- a/fluid/widget_panel.fl +++ b/fluid/widget_panel.fl @@ -362,7 +362,7 @@ Use Ctrl-J for newlines.} xywh {95 40 190 20} labelfont 1 labelsize 11 when 1 te label {Shortcut:} callback shortcut_in_cb comment {This is a special button that grabs keystrokes directly} - tooltip {The shortcut key for the widget.} xywh {95 210 310 20} box DOWN_BOX color 7 selection_color 7 labelfont 1 labelsize 11 align 4 + tooltip {The shortcut key for the widget.\nUse 'Backspace' key to clear.} xywh {95 210 310 20} box DOWN_BOX color 7 selection_color 7 labelfont 1 labelsize 11 align 4 code0 {\#include "Shortcut_Button.h"} class Shortcut_Button } |
