mouse bindings and documentation

This commit is contained in:
Luke Smith 2018-10-16 15:21:02 -04:00
parent 07bfca3009
commit 7186ee2ddd
No known key found for this signature in database
GPG Key ID: 4C50B54A911F6252
2 changed files with 10 additions and 5 deletions

View File

@ -192,15 +192,20 @@ static MouseShortcut mshortcuts[] = {
{ Button5, XK_NO_MOD, "\005" }, { Button5, XK_NO_MOD, "\005" },
}; };
/* Internal keyboard shortcuts. */
#define MODKEY Mod1Mask
#define TERMMOD (ControlMask|ShiftMask)
MouseKey mkeys[] = { MouseKey mkeys[] = {
/* button mask function argument */ /* button mask function argument */
{ Button4, ShiftMask, kscrollup, {.i = 1} }, { Button4, ShiftMask, kscrollup, {.i = 1} },
{ Button5, ShiftMask, kscrolldown, {.i = 1} }, { Button5, ShiftMask, kscrolldown, {.i = 1} },
{ Button4, MODKEY, kscrollup, {.i = 1} },
{ Button5, MODKEY, kscrolldown, {.i = 1} },
{ Button4, MODKEY|ShiftMask, zoom, {.f = +1} },
{ Button5, MODKEY|ShiftMask, zoom, {.f = -1} },
}; };
/* Internal keyboard shortcuts. */
#define MODKEY Mod1Mask
#define TERMMOD (ControlMask|ShiftMask)
static Shortcut shortcuts[] = { static Shortcut shortcuts[] = {
/* mask keysym function argument */ /* mask keysym function argument */

4
st.1
View File

@ -125,13 +125,13 @@ and all the remaining arguments are used as a command
even without it. even without it.
.SH SHORTCUTS .SH SHORTCUTS
.TP .TP
.B Alt-j/k or Alt-Up/Down .B Alt-j/k or Alt-Up/Down or Alt-Mouse Wheel
Scroll up/down one line at a time. Scroll up/down one line at a time.
.TP .TP
.B Alt-u/d or Alt-Page Up/Page Down .B Alt-u/d or Alt-Page Up/Page Down
Scroll up/down one screen at a time. Scroll up/down one screen at a time.
.TP .TP
.B Alt-Shift-k/j Alt-Shift-Page Up/Page Down .B Alt-Shift-k/j or Alt-Shift-Page Up/Page Down or Alt-Shift-Mouse Wheel
Increase or decrease font size. Increase or decrease font size.
.TP .TP
.B Alt-Shift-Home .B Alt-Shift-Home