diff --git a/src/app.rs b/src/app.rs index 53460cc..17c059d 100644 --- a/src/app.rs +++ b/src/app.rs @@ -447,6 +447,13 @@ impl App { } } + if input.consume_shortcut(&KeyboardShortcut { + modifiers: Modifiers::CTRL, + logical_key: I, + }) { + self.zen_mode = !self.zen_mode; + } + if input.consume_shortcut(&KeyboardShortcut { modifiers: Modifiers::CTRL, logical_key: H, diff --git a/src/app/help.rs b/src/app/help.rs index cb059d5..bfb0057 100644 --- a/src/app/help.rs +++ b/src/app/help.rs @@ -43,6 +43,7 @@ impl App { ("100% - 900% Zoom", "Ctrl + 1 - 9"), ("Previous image", "A or L or Left Arrow"), ("Next image", "D or H or Right Arrow"), + ("Toggle zen mode", "Ctrl + I"), ]; ui.label(RichText::new("Action").strong());