From 2b88ce521dbdb9bbac2c89d8fa2e23e7270d1723 Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Mon, 6 Jul 2020 21:31:25 -0700 Subject: 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. --- fluid/widget_panel.cxx | 2 +- 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 } -- cgit v1.2.3