summaryrefslogtreecommitdiffstats
path: root/src/state.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-12-10 23:01:59 -0500
committerJesse Luehrs <doy@tozt.net>2021-12-10 23:01:59 -0500
commited83c606b26affee61d8745bbc9cd9601f8a52e6 (patch)
tree8be016e744ff1c0c116f0a432a1160ee176d5fe8 /src/state.rs
parent5c6400c5635362ccbb39e0324a4681d4029d3f74 (diff)
downloadnbsh-ed83c606b26affee61d8745bbc9cd9601f8a52e6.tar.gz
nbsh-ed83c606b26affee61d8745bbc9cd9601f8a52e6.zip
add a key to just enter scrolling mode
Diffstat (limited to 'src/state.rs')
-rw-r--r--src/state.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/state.rs b/src/state.rs
index 12317f4..c31eba8 100644
--- a/src/state.rs
+++ b/src/state.rs
@@ -75,6 +75,11 @@ impl State {
None
}
}
+ textmode::Key::Ctrl(b'e') => {
+ Some(crate::action::Action::UpdateFocus(
+ crate::action::Focus::Scrolling(self.focus_idx()),
+ ))
+ }
textmode::Key::Char('j') | textmode::Key::Down => {
Some(crate::action::Action::UpdateFocus(
crate::action::Focus::Scrolling(