diff options
| author | Yui Hirasawa | 2020-06-13 02:56:10 +1000 |
|---|---|---|
| committer | Yui Hirasawa | 2020-06-13 02:56:10 +1000 |
| commit | b83faf078b50ba5d1b8526f3579e74dc22242e93 (patch) | |
| tree | 581ef45d432e8c9f07b989ef43252e6875bd9778 /config.def.h | |
| parent | 1b0a19d1ef1b3f1629a8ce67e71dd0be91e87636 (diff) | |
| download | st-b83faf078b50ba5d1b8526f3579e74dc22242e93.tar.gz st-b83faf078b50ba5d1b8526f3579e74dc22242e93.zip | |
Added mouse scrolling (no modifier) patch
Diffstat (limited to 'config.def.h')
| -rw-r--r-- | config.def.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h index b4fff92..157246e 100644 --- a/config.def.h +++ b/config.def.h @@ -178,6 +178,8 @@ static uint forcemousemod = ShiftMask; */ static MouseShortcut mshortcuts[] = { /* mask button function argument release */ + { XK_ANY_MOD, Button4, kscrollup, {.i = 1}, 0, /* !alt */ -1 }, + { XK_ANY_MOD, Button5, kscrolldown, {.i = 1}, 0, /* !alt */ -1 }, { XK_ANY_MOD, Button2, selpaste, {.i = 0}, 1 }, { ShiftMask, Button4, ttysend, {.s = "\033[5;2~"} }, { XK_ANY_MOD, Button4, ttysend, {.s = "\031"} }, @@ -203,6 +205,8 @@ static Shortcut shortcuts[] = { { TERMMOD, XK_Y, selpaste, {.i = 0} }, { ShiftMask, XK_Insert, selpaste, {.i = 0} }, { TERMMOD, XK_Num_Lock, numlock, {.i = 0} }, + { ShiftMask, XK_Page_Up, kscrollup, {.i = -1} }, + { ShiftMask, XK_Page_Down, kscrolldown, {.i = -1} }, }; /* |
