Restores mouse pointer before popping up cut/copy/paste menu
on Fl_Input and Fl_Text_Display Also adds – to Help View
This commit is contained in:
parent
39a3212fc3
commit
102437f1ee
@ -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 },
|
||||
|
@ -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:
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user