summaryrefslogtreecommitdiff
path: root/fluid
diff options
context:
space:
mode:
authorMatthias Melcher <github@matthiasm.com>2023-07-22 15:30:09 +0200
committerMatthias Melcher <github@matthiasm.com>2023-07-22 15:30:17 +0200
commitf0375d6213d67d585c9b8e5adc443d8c8adc280c (patch)
treed1835f88b834dc44829c6a6879355cc83206614f /fluid
parentfa0aa95443689fc0d5fae2abdf16b2920faf55fa (diff)
Adds default shortcut to Fl_Shortcut_Button.
Diffstat (limited to 'fluid')
-rw-r--r--fluid/Fl_Menu_Type.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/fluid/Fl_Menu_Type.cxx b/fluid/Fl_Menu_Type.cxx
index 28f77175f..75679e835 100644
--- a/fluid/Fl_Menu_Type.cxx
+++ b/fluid/Fl_Menu_Type.cxx
@@ -708,6 +708,7 @@ void shortcut_in_cb(Fl_Shortcut_Button* i, void* v) {
i->parent()->hide();
return;
}
+ i->default_value( i->value() ); // enable the "undo" capability of the shortcut button
i->show();
i->parent()->show();
i->redraw();