summaryrefslogtreecommitdiff
path: root/command.h
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-12-31 14:11:25 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2020-12-31 14:11:25 -0500
commitd7ae78179cf18bc79703ac2199e0ae03e556430f (patch)
tree3b580699a0a9f5dc2fb41d54936b19aeb90904e9 /command.h
parent185bf5b364efb4d7885ff5adcb69204e892ff5f7 (diff)
page up/down
Diffstat (limited to 'command.h')
-rw-r--r--command.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/command.h b/command.h
index df6bf74..1057b4b 100644
--- a/command.h
+++ b/command.h
@@ -23,6 +23,10 @@ ENUM_U16 {
CMD_SELECT_START_OF_FILE,
CMD_SELECT_END_OF_FILE,
+ // scrolling
+ CMD_PAGE_UP,
+ CMD_PAGE_DOWN,
+
// deletion
CMD_BACKSPACE,
CMD_DELETE,
@@ -40,7 +44,6 @@ typedef struct {
char const *name;
Command cmd;
} CommandName;
-
static CommandName const command_names[CMD_COUNT] = {
{"unknown", CMD_UNKNOWN},
{"noop", CMD_NOOP},
@@ -64,12 +67,14 @@ static CommandName const command_names[CMD_COUNT] = {
{"end-of-file", CMD_END_OF_FILE},
{"select-start-of-file", CMD_SELECT_START_OF_FILE},
{"select-end-of-file", CMD_SELECT_END_OF_FILE},
+ {"page-up", CMD_PAGE_UP},
+ {"page-down", CMD_PAGE_DOWN},
{"backspace", CMD_BACKSPACE},
{"delete", CMD_DELETE},
{"backspace-word", CMD_BACKSPACE_WORD},
{"delete-word", CMD_DELETE_WORD},
{"save", CMD_SAVE},
{"undo", CMD_UNDO},
- {"redo", CMD_REDO}
+ {"redo", CMD_REDO},
};