From c09260d8f7720af9baf1a569ce1b8bbf94c37fa5 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Thu, 11 Oct 2018 18:05:56 +0300 Subject: [PATCH] X11: Handle paged menu control keys X11 doesn't do menu paging, so handle the select page, invert page, and unselect page like selecting, inverting or unselecting all. --- doc/fixes36.2 | 1 + win/X11/winmenu.c | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/fixes36.2 b/doc/fixes36.2 index d2fd7879e..064f213e6 100644 --- a/doc/fixes36.2 +++ b/doc/fixes36.2 @@ -223,6 +223,7 @@ Qt: remember tile and font size X11: implement menucolors and allow menus to obey inverse attribute X11: make key translations work with menus on Linux X11: allow mouse wheel scrolling to work in menus by default +X11: handle paged menu control keys General New Features diff --git a/win/X11/winmenu.c b/win/X11/winmenu.c index 1690c5c97..94ef59449 100644 --- a/win/X11/winmenu.c +++ b/win/X11/winmenu.c @@ -257,19 +257,19 @@ Cardinal *num_params; X11_nhbell(); return; } - } else if (ch == MENU_SELECT_ALL) { /* select all */ + } else if (ch == MENU_SELECT_ALL || ch == MENU_SELECT_PAGE) { if (menu_info->how == PICK_ANY) select_all(wp); else X11_nhbell(); return; - } else if (ch == MENU_UNSELECT_ALL) { /* unselect all */ + } else if (ch == MENU_UNSELECT_ALL || ch == MENU_UNSELECT_PAGE) { if (menu_info->how == PICK_ANY) select_none(wp); else X11_nhbell(); return; - } else if (ch == MENU_INVERT_ALL) { /* invert all */ + } else if (ch == MENU_INVERT_ALL || ch == MENU_INVERT_PAGE) { if (menu_info->how == PICK_ANY) invert_all(wp); else