From a7bc26e12a43cbf01ec56e90bc6a3f9e3da9d724 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sat, 10 Feb 2024 14:55:52 +0100 Subject: FLUID: Fix double reverse logic in FL_COMMAND handling --- fluid/Fl_Menu_Type.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fluid/Fl_Menu_Type.cxx') diff --git a/fluid/Fl_Menu_Type.cxx b/fluid/Fl_Menu_Type.cxx index ab8c2cca8..ebc7a4653 100644 --- a/fluid/Fl_Menu_Type.cxx +++ b/fluid/Fl_Menu_Type.cxx @@ -398,8 +398,8 @@ void Fl_Menu_Item_Type::write_item(Fd_Code_Writer& f) { int s = ((Fl_Button*)o)->shortcut(); f.write_c(", "); if (g_project.use_FL_COMMAND) { - if (s & FL_COMMAND) { f.write_c("FL_COMMAND|"); s &= ~FL_COMMAND; } - if (s & FL_CONTROL) { f.write_c("FL_CONTROL|"); s &= ~FL_CONTROL; } + if (s & FL_CTRL) { f.write_c("FL_CONTROL|"); s &= ~FL_CTRL; } + if (s & FL_META) { f.write_c("FL_COMMAND|"); s &= ~FL_META; } } else { if (s & FL_CTRL) { f.write_c("FL_CTRL|"); s &= ~FL_CTRL; } if (s & FL_META) { f.write_c("FL_META|"); s &= ~FL_META; } -- cgit v1.2.3