add a few common keybinds: ^D, SPACE and ^L

Signed-off-by: Christoph Lohmann <20h@r-36.net>
This commit is contained in:
Hiltjo Posthuma 2020-12-20 15:54:45 +01:00 committed by Christoph Lohmann
parent 4749f13de5
commit b455270d0e

View File

@ -115,6 +115,7 @@ again:
c = getch(); c = getch();
switch (c) { switch (c) {
/* powerpoint remote presenter shortcuts */ /* powerpoint remote presenter shortcuts */
case 4: /* ^D, EOT */
case 27: case 27:
case KEY_F(5): case KEY_F(5):
/* end presentation */ /* end presentation */
@ -132,6 +133,7 @@ again:
} }
goto again; goto again;
/* prev */ /* prev */
case ' ':
case 'h': case 'h':
case 'k': case 'k':
case KEY_LEFT: case KEY_LEFT:
@ -159,6 +161,7 @@ again:
case 'r': case 'r':
reloadcurrentslide(0); reloadcurrentslide(0);
goto show; goto show;
case 12: /* ^L, redraw */
case KEY_RESIZE: /* resize / SIGWINCH */ case KEY_RESIZE: /* resize / SIGWINCH */
goto show; goto show;
default: default: