diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-12-10 23:01:59 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-12-10 23:01:59 -0500 |
commit | ed83c606b26affee61d8745bbc9cd9601f8a52e6 (patch) | |
tree | 8be016e744ff1c0c116f0a432a1160ee176d5fe8 /src | |
parent | 5c6400c5635362ccbb39e0324a4681d4029d3f74 (diff) | |
download | nbsh-ed83c606b26affee61d8745bbc9cd9601f8a52e6.tar.gz nbsh-ed83c606b26affee61d8745bbc9cd9601f8a52e6.zip |
add a key to just enter scrolling mode
Diffstat (limited to 'src')
-rw-r--r-- | src/state.rs | 5 |
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( |