Skip to content

Commit deffdb7

Browse files
BornToBeRootclaude
andcommitted
Fix: Port profiles dialog search Enter only filters
Enter in the search box triggered the default button (OK) and closed the dialog with the current selection. SearchTextBoxHelper.HandleEnter handles it, the list is filtered while typing as before. Enter in the list still selects (KeyBinding on the DataGrid). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent c1eff49 commit deffdb7

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎Source/NETworkManager/Views/PortProfilesChildWindow.xaml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
xmlns:network="clr-namespace:NETworkManager.Models.Network;assembly=NETworkManager.Models"
77
xmlns:viewModels="clr-namespace:NETworkManager.ViewModels"
88
xmlns:controls="clr-namespace:NETworkManager.Controls;assembly=NETworkManager.Controls"
9+
xmlns:wpfHelpers="clr-namespace:NETworkManager.Utilities.WPF;assembly=NETworkManager.Utilities.WPF"
910
xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization"
1011
xmlns:simpleChildWindow="clr-namespace:MahApps.Metro.SimpleChildWindow;assembly=MahApps.Metro.SimpleChildWindow"
1112
xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
@@ -24,6 +25,7 @@
2425
<TextBox x:Name="TextBoxSearch"
2526
Grid.Column="0" Grid.Row="0"
2627
VerticalAlignment="Center" Text="{Binding Path=Search, UpdateSourceTrigger=PropertyChanged}"
28+
wpfHelpers:SearchTextBoxHelper.HandleEnter="True"
2729
Style="{StaticResource ResourceKey=SearchTextBox}" />
2830
<Grid Grid.Column="0" Grid.Row="2">
2931
<controls:MultiSelectDataGrid x:Name="DataGridProfiles"

‎Website/docs/changelog/next-release.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ Release date: **xx.xx.2026**
275275
- Fixed the **Hostname** column and **Copy** > **Hostname** being shown or hidden according to the current settings instead of the settings the shown scan was started with. [#PR](https://github.com/BornToBeRoot/NETworkManager/pull/PR)
276276
- Fixed hostnames resolved via DNS (`PTR`) being shown with a trailing dot (e.g. `server.example.com.`), also in the group header and the export. [#PR](https://github.com/BornToBeRoot/NETworkManager/pull/PR)
277277
- Fixed the progress and the open / closed counters possibly staying below the final values (e.g. 1023 of 1024 ports scanned) when the results of several ports arrived at the same time. [#PR](https://github.com/BornToBeRoot/NETworkManager/pull/PR)
278+
- Fixed `Enter` in the search box of the port profiles dialog closing the dialog with **OK**. It only filters the port profiles now. [#PR](https://github.com/BornToBeRoot/NETworkManager/pull/PR)
278279

279280
**IP Geolocation**
280281

0 commit comments

Comments
 (0)