From 102437f1eedce8589d947bf8791d6d5f413d445b Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Sun, 26 Nov 2023 12:00:00 +0100 Subject: [PATCH] Restores mouse pointer before popping up cut/copy/paste menu on Fl_Input and Fl_Text_Display Also adds – to Help View --- src/Fl_Help_View.cxx | 1 + src/Fl_Input.cxx | 1 + src/Fl_Text_Display.cxx | 1 + 3 files changed, 3 insertions(+) diff --git a/src/Fl_Help_View.cxx b/src/Fl_Help_View.cxx index 2dcf5fad9..0f1186c41 100644 --- a/src/Fl_Help_View.cxx +++ b/src/Fl_Help_View.cxx @@ -3564,6 +3564,7 @@ quote_char(const char *p) { // I - Quoted string { "micro;", 6, 181 }, { "middot;", 7, 183 }, { "nbsp;", 5, ' ' }, + { "ndash;", 6, 0x2013 }, { "not;", 4, 172 }, { "Ntilde;", 7, 209 }, { "ntilde;", 7, 241 }, diff --git a/src/Fl_Input.cxx b/src/Fl_Input.cxx index df63674d8..44aabd7dc 100644 --- a/src/Fl_Input.cxx +++ b/src/Fl_Input.cxx @@ -532,6 +532,7 @@ int Fl_Input::handle_rmb() { rmb_menu[2].activate(); // paste } // pop up the menu + fl_cursor(FL_CURSOR_DEFAULT); const Fl_Menu_Item *mi = rmb_menu->popup(Fl::event_x(), Fl::event_y()); if (mi) switch (mi->argument()) { case 1: diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx index 088f022d3..b2f748411 100644 --- a/src/Fl_Text_Display.cxx +++ b/src/Fl_Text_Display.cxx @@ -4107,6 +4107,7 @@ int Fl_Text_Display::handle_rmb(int readonly) { rmb_menu[2].activate(); // paste } // pop up the menu + fl_cursor(FL_CURSOR_DEFAULT); const Fl_Menu_Item *mi = rmb_menu->popup(Fl::event_x(), Fl::event_y()); if (mi) return (int)mi->argument(); return 0;