From f0375d6213d67d585c9b8e5adc443d8c8adc280c Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sat, 22 Jul 2023 15:30:09 +0200 Subject: Adds default shortcut to Fl_Shortcut_Button. --- fluid/Fl_Menu_Type.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'fluid') 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(); -- cgit v1.2.3