Exit sub-network via Escape key (#3285)
Some checks are pending
Editor: Dev & CI / build (push) Waiting to run
Editor: Dev & CI / cargo-deny (push) Waiting to run

"Escape key in sub-network"

Co-authored-by: Timon <me@timon.zip>
This commit is contained in:
Sambhram 2025-10-15 05:38:04 +05:30 committed by GitHub
parent 717defb2bb
commit 591096a817
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -496,6 +496,9 @@ impl MessageHandler<DocumentMessage, DocumentMessageContext<'_>> for DocumentMes
self.node_graph_handler.wire_in_progress_from_connector = None;
self.node_graph_handler.wire_in_progress_to_connector = None;
responses.add(FrontendMessage::UpdateWirePathInProgress { wire_path: None });
} else if !self.breadcrumb_network_path.is_empty() {
// Exit one level up if inside a nested network
responses.add(DocumentMessage::ExitNestedNetwork { steps_back: 1 });
} else {
responses.add(DocumentMessage::GraphViewOverlay { open: false });
}