From 60c974b28c514f179477710810e263fabf206c89 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 13 Nov 2021 16:55:41 -0500 Subject: add ability to toggle fullscreen --- src/state.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/state.rs') 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) => { -- cgit v1.2.3-54-g00ecf