diff --git a/crates/horizon-client/src/game.rs b/crates/horizon-client/src/game.rs index 4f36c93f5..c5fea0539 100644 --- a/crates/horizon-client/src/game.rs +++ b/crates/horizon-client/src/game.rs @@ -3101,7 +3101,11 @@ impl Game<'_> { && self.title.is_none() && (matches!( self.screen, - Screen::Paused | Screen::Options | Screen::Stats | Screen::Advancements + Screen::Paused + | Screen::Options + | Screen::Stats + | Screen::Advancements + | Screen::WorldOptions ) || self.book.is_some()) } fn capture(&mut self, capture: bool) { @@ -8471,7 +8475,10 @@ impl ApplicationHandler for Game<'_> { WindowEvent::KeyboardInput { event, .. } if self.remote_chat_open() => { self.remote_chat_key(&event) } - WindowEvent::KeyboardInput { event, .. } if self.screen == Screen::WorldOptions => { + WindowEvent::KeyboardInput { event, .. } + if self.screen == Screen::WorldOptions + && !matches!(event.physical_key, PhysicalKey::Code(KeyCode::Escape)) => + { self.world_options_key(&event) } // Options consumes presses; releases still reach the bound diff --git a/crates/horizon-client/src/game/lan_screen.rs b/crates/horizon-client/src/game/lan_screen.rs index 4183596eb..8f2612472 100644 --- a/crates/horizon-client/src/game/lan_screen.rs +++ b/crates/horizon-client/src/game/lan_screen.rs @@ -304,8 +304,6 @@ impl Game<'_> { self.world_options = Some(o); self.apply_world_options(&before, &wanted); self.close_world_options(); - self.screen = Screen::Playing; - self.capture(true); return; } None => {}