summaryrefslogtreecommitdiff
path: root/command.h
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-14 13:48:00 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-14 13:48:00 -0500
commit5ff81b44c8fd118580d011fb61deb662f8b93c93 (patch)
treebb0118576e3ee25f5cc334f5521fcca444795788 /command.h
parent6a4872368e3b240ea15eda3e2e645f588efcf6a9 (diff)
toggle view only mode
Diffstat (limited to 'command.h')
-rw-r--r--command.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/command.h b/command.h
index e366f17..965d568 100644
--- a/command.h
+++ b/command.h
@@ -63,6 +63,8 @@ ENUM_U16 {
CMD_TEXT_SIZE_INCREASE,
CMD_TEXT_SIZE_DECREASE,
+ CMD_VIEW_ONLY, // toggle view-only mode
+
CMD_ESCAPE, // by default this is the escape key. closes menus, etc.
CMD_COUNT
@@ -125,6 +127,7 @@ static CommandName const command_names[CMD_COUNT] = {
{"tab-prev", CMD_TAB_PREV},
{"increase-text-size", CMD_TEXT_SIZE_INCREASE},
{"decrease-text-size", CMD_TEXT_SIZE_DECREASE},
- {"escape", CMD_ESCAPE}
+ {"view-only", CMD_VIEW_ONLY},
+ {"escape", CMD_ESCAPE},
};