diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index 779c984..07a5b4a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -232,6 +232,14 @@ fn main() -> Result<(), Error> { state.render(); state.redraw(true); }, + ThreadEvent::Input(Key::Ctrl('s')) => { + state.rcv_event(UIEvent::Freeze); + state.redraw(false); + } + ThreadEvent::Input(Key::Ctrl('q')) => { + state.rcv_event(UIEvent::Unfreeze); + state.redraw(false); + } ThreadEvent::Input(k) => { match k { Key::Char('q') | Key::Char('Q') if state.mode == UIMode::Normal => { |