fix(shell): web dispatcher handles FocusMcpPort
Native press dispatcher learned FocusMcpPort in the previous commit but the web shell's parallel match was left without that arm — a click on the port field on web would silently fall through to no-op. Add the same focus + seed-draft flow on the web side so cross-platform behaviour stays identical.
This commit is contained in:
parent
33b44de80f
commit
53c75368ec
|
|
@ -477,6 +477,10 @@ impl WidgetHost {
|
|||
AgentSettingsHit::ToggleImagesAdvanced => {
|
||||
self.document.ui.agent_settings.images_advanced_open ^= true;
|
||||
}
|
||||
AgentSettingsHit::FocusMcpPort => {
|
||||
self.document.ui.agent_settings.focus = Some(openpencil_shell_core::document::SettingsFocus::McpPort);
|
||||
self.document.ui.settings_input_draft = self.document.ui.agent_settings.mcp_server.port.to_string();
|
||||
}
|
||||
AgentSettingsHit::AddProvider | AgentSettingsHit::AddAcpAgent | AgentSettingsHit::TestImageSearch | AgentSettingsHit::AddGenConfig | AgentSettingsHit::Inside => {}
|
||||
}
|
||||
true
|
||||
|
|
|
|||
Loading…
Reference in a new issue