aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/errors.rs
diff options
context:
space:
mode:
authorHongjie Zhai <zhaihj@live.jp>2021-04-21 14:27:58 +0900
committerHongjie Zhai <zhaihj@live.jp>2021-04-21 14:27:58 +0900
commitfad088a86843ccf38a7f3b020ae9b93bef25b4a7 (patch)
treeee057976dce6f8437a8cc59515d7746d08cc2904 /src/common/errors.rs
parentfix(release): beta tag breaks cargo install (diff)
downloadsl0ppij-fad088a86843ccf38a7f3b020ae9b93bef25b4a7.tar.gz
sl0ppij-fad088a86843ccf38a7f3b020ae9b93bef25b4a7.tar.xz
sl0ppij-fad088a86843ccf38a7f3b020ae9b93bef25b4a7.zip
add scroll page
Diffstat (limited to 'src/common/errors.rs')
-rw-r--r--src/common/errors.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/errors.rs b/src/common/errors.rs
index d0b748ab..dd675738 100644
--- a/src/common/errors.rs
+++ b/src/common/errors.rs
@@ -196,6 +196,8 @@ pub enum ScreenContext {
Quit,
ScrollUp,
ScrollDown,
+ PageScrollUp,
+ PageScrollDown,
ClearScroll,
CloseFocusedPane,
ToggleActiveTerminalFullscreen,
@@ -238,6 +240,8 @@ impl From<&ScreenInstruction> for ScreenContext {
ScreenInstruction::Quit => ScreenContext::Quit,
ScreenInstruction::ScrollUp => ScreenContext::ScrollUp,
ScreenInstruction::ScrollDown => ScreenContext::ScrollDown,
+ ScreenInstruction::PageScrollUp => ScreenContext::PageScrollUp,
+ ScreenInstruction::PageScrollDown => ScreenContext::PageScrollDown,
ScreenInstruction::ClearScroll => ScreenContext::ClearScroll,
ScreenInstruction::CloseFocusedPane => ScreenContext::CloseFocusedPane,
ScreenInstruction::ToggleActiveTerminalFullscreen => {