Make shift+wheel behaves as shift+Prev/Next
[st.git] / config.def.h
index fdbacfd..293e00c 100644 (file)
@@ -171,7 +171,9 @@ static uint forcemousemod = ShiftMask;
 static MouseShortcut mshortcuts[] = {
        /* mask                 button   function        argument       release */
        { XK_ANY_MOD,           Button2, selpaste,       {.i = 0},      1 },
+       { ShiftMask,            Button4, ttysend,        {.s = "\033[5;2~"} },
        { XK_ANY_MOD,           Button4, ttysend,        {.s = "\031"} },
+       { ShiftMask,            Button5, ttysend,        {.s = "\033[6;2~"} },
        { XK_ANY_MOD,           Button5, ttysend,        {.s = "\005"} },
 };