From 6d9df0763fcb5a60e229ce270352d57da2d88abb Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Fri, 17 Dec 2021 19:37:34 +0100 Subject: GitHub #327: menu buttons will no longer grab arrow keys. In Fluid, selecting a menu button, and selecting it again to make it movable would also grab the text input focus, which would prevent the enclosing window from using arrow key events to manipulate the selected widget. --- fluid/Fl_Menu_Type.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'fluid') diff --git a/fluid/Fl_Menu_Type.cxx b/fluid/Fl_Menu_Type.cxx index d05f7eadd..d7e5fc5ea 100644 --- a/fluid/Fl_Menu_Type.cxx +++ b/fluid/Fl_Menu_Type.cxx @@ -485,6 +485,7 @@ Fl_Type* Fl_Menu_Type::click_test(int, int) { w->value((Fl_Menu_Item*)0); Fl::pushed(w); w->handle(FL_PUSH); + Fl::focus(NULL); const Fl_Menu_Item* m = w->mvalue(); if (m) { // restore the settings of toggles & radio items: @@ -586,6 +587,7 @@ Fl_Type* Fl_Input_Choice_Type::click_test(int, int) { w->value((Fl_Menu_Item*)0); Fl::pushed(w); w->handle(FL_PUSH); + Fl::focus(NULL); const Fl_Menu_Item* m = w->mvalue(); if (m) { // restore the settings of toggles & radio items: -- cgit v1.2.3