add a few common keybinds: ^D, SPACE and ^L - catpoint - Catpoint simple presen… | |
git clone git://bitreich.org/catpoint/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrin… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
LICENSE | |
--- | |
commit b455270d0e2a268f232b1ad89cb977afbdc52704 | |
parent 4749f13de5cfd18a997135c10d5ea859e56efaba | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Sun, 20 Dec 2020 15:54:45 +0100 | |
add a few common keybinds: ^D, SPACE and ^L | |
Signed-off-by: Christoph Lohmann <[email protected]> | |
Diffstat: | |
M catpoint.c | 3 +++ | |
1 file changed, 3 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/catpoint.c b/catpoint.c | |
@@ -115,6 +115,7 @@ again: | |
c = getch(); | |
switch (c) { | |
/* powerpoint remote presenter shortcuts */ | |
+ case 4: /* ^D, EOT */ | |
case 27: | |
case KEY_F(5): | |
/* end presentation */ | |
@@ -132,6 +133,7 @@ again: | |
} | |
goto again; | |
/* prev */ | |
+ case ' ': | |
case 'h': | |
case 'k': | |
case KEY_LEFT: | |
@@ -159,6 +161,7 @@ again: | |
case 'r': | |
reloadcurrentslide(0); | |
goto show; | |
+ case 12: /* ^L, redraw */ | |
case KEY_RESIZE: /* resize / SIGWINCH */ | |
goto show; | |
default: |