diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-11-13 16:55:41 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-11-13 16:55:41 -0500 |
commit | 60c974b28c514f179477710810e263fabf206c89 (patch) | |
tree | b1a3faf655efeca67cc5b9908ad1ceb3cdbc3ac2 /src/state.rs | |
parent | 72677dc11f65207ff0a89a9b10a50d1176d53aa6 (diff) | |
download | nbsh-60c974b28c514f179477710810e263fabf206c89.tar.gz nbsh-60c974b28c514f179477710810e263fabf206c89.zip |
add ability to toggle fullscreen
Diffstat (limited to 'src/state.rs')
-rw-r--r-- | src/state.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/state.rs b/src/state.rs index b97249e..67a29e8 100644 --- a/src/state.rs +++ b/src/state.rs @@ -73,6 +73,12 @@ impl State { textmode::Key::Ctrl(b'e') => { ret = false; // fall through and handle normally } + textmode::Key::Char('f') => { + if let Focus::History(idx) = self.focus { + self.history.toggle_fullscreen(idx).await; + self.render().await.unwrap(); + } + } textmode::Key::Char('j') => { let new_focus = match self.focus { Focus::History(idx) => { |