From 481d531fe4b35ec5b15e30ecec5e2e5d9873fd7c Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Fri, 27 Nov 2026 20:54:14 +0000 Subject: [PATCH 1/2] show: plain Enter runs Go to typed slide once, through the window's leftover Enter, also with the slide focused Co-Authored-By: Claude Opus 5.5 --- crates/ui-egui/src/show/commands.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/ui-egui/src/show/commands.rs b/crates/ui-egui/src/show/commands.rs index f2a2a7f6c..8ace346b2 100644 --- a/crates/ui-egui/src/show/commands.rs +++ b/crates/ui-egui/src/show/commands.rs @@ -29,8 +29,9 @@ pub(crate) enum ShowCommands { /// Visit the last slide in the show's range. #[command(label = "Last slide", default = "End")] Last, - /// Consume a slide number, or advance when none was typed. - #[command(label = "Go to typed slide", default = "Enter")] + /// Consume a slide number, or advance when none was typed. Plain Enter is the window's, not a shortcut: the page + /// runs this for the Enter that no component took, the focused canvas's included. + #[command(label = "Go to typed slide")] GoToTyped, /// Erase a digit, or go back when none was typed. #[command(label = "Erase typed digit", default = "Backspace")] From 53fbe3000cf16eda8b8cef04dab0bf01dd543835 Mon Sep 17 00:00:00 2001 From: "Dylan M. Taylor" Date: Fri, 27 Nov 2026 21:03:59 +0000 Subject: [PATCH 2/2] show: a Ctrl or Cmd wheel zoom takes over the armed zoom click, as in production Co-Authored-By: Claude Opus 5.5 --- crates/ui-egui/src/show/ui.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crates/ui-egui/src/show/ui.rs b/crates/ui-egui/src/show/ui.rs index d73955408..57fa53ea6 100644 --- a/crates/ui-egui/src/show/ui.rs +++ b/crates/ui-egui/src/show/ui.rs @@ -155,7 +155,12 @@ fn canvas_pass(app: &mut SlideApp, ui: &mut Ui, bcx: &mut BodyCx<'_>, show: &mut .show(&mut child, |ui, body| { let Some(mut pass) = tool_pass(&body.env) else { return }; let Some(mut space) = pass.space else { return }; + let given = show.view.zoom; show.view = pass.view.unwrap_or_else(|| space.target()); + // The canvas zooms only with Ctrl or Cmd + wheel here; that zoom takes over an armed zoom click. + if show.view.zoom != given { + show.zoom_arm = false; + } show.zoomed = zoom::device(&show.view, p.zoom.pixels_per_point) > p.zoom.scheme.hundred * 1.001; publish(bcx, show); if !show.reading {