From e671cb53b8c971acdb6fea35a5530ce206edc2c8 Mon Sep 17 00:00:00 2001 From: miroiu Date: Sun, 5 Jan 2025 11:04:13 +0200 Subject: [PATCH] Fixed an issue where connections would not gain focus when selected --- CHANGELOG.md | 1 + Nodify/Connections/ConnectionContainer.cs | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c48cbaab..af51655c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ > - Breaking Changes: > - Features: > - Bugfixes: +> - Fixed an issue where connections would not gain focus when selected, which could prevent editor keybindings from functioning in certain scenarios #### **Version 7.0.0** diff --git a/Nodify/Connections/ConnectionContainer.cs b/Nodify/Connections/ConnectionContainer.cs index 2b6d7e59..621fb760 100644 --- a/Nodify/Connections/ConnectionContainer.cs +++ b/Nodify/Connections/ConnectionContainer.cs @@ -75,6 +75,11 @@ public event RoutedEventHandler Unselected private SelectionType? _selectionType; + static ConnectionContainer() + { + FocusableProperty.OverrideMetadata(typeof(ConnectionContainer), new FrameworkPropertyMetadata(BoxValue.True)); + } + internal ConnectionContainer(ConnectionsMultiSelector selector) { Selector = selector;