Scroll up/down to move to the next/previous page

This commit is contained in:
Jacob 2023-07-15 15:55:15 +02:00
parent 1fe08aa295
commit d18fd28fa0
2 changed files with 6 additions and 0 deletions

View file

@ -266,6 +266,8 @@ spmenu = {
{ click = "ClickMode"; button = "Left Click"; function = "switchmode"; argument = "0"; }, // Left click on the mode indicator: Toggle mode
{ click = "ClickNumber"; button = "Left Click"; function = "viewhist"; argument = "0"; }, // Click on the match count: Toggle viewing history buffer
{ click = "ClickSelItem"; button = "Left Click"; function = "None"; argument = "0"; }, // Left click on an item: Select it
{ click = "None"; button = "Scroll Up"; function = "moveprev"; argument = "0"; }, // Scroll Up: Move to the previous page
{ click = "None"; button = "Scroll Down"; function = "movenext"; argument = "0"; }, // Scroll Down: Move to the next page
{ ignoreglobalmouse = 1; } ); // Ignore hardcoded mouse binds (0/1)

View file

@ -10,6 +10,8 @@ static Mouse buttons[] = {
{ ClickMode, Button1, switchmode, {0} },
{ ClickNumber, Button1, viewhist, {0} },
{ ClickSelItem, Button1, NULL, {0} },
{ ClickNone, Button5, movenext, {0} },
{ ClickNone, Button4, moveprev, {0} },
};
#endif
@ -21,5 +23,7 @@ static WlMouse wl_buttons[] = {
{ ClickMode, WL_Left, switchmode, {0} },
{ ClickNumber, WL_Left, viewhist, {0} },
{ ClickSelItem, WL_Left, NULL, {0} },
{ ClickNone, WL_ScrollDown, movenext, {0} },
{ ClickNone, WL_ScrollUp, moveprev, {0} },
};
#endif