Skip to content

Commit 0232ce7

Browse files
BornToBeRootclaude
andcommitted
Fix: SNMP OID 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 deffdb7 commit 0232ce7

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

‎Source/NETworkManager/Views/SNMPOIDProfilesChildWindow.xaml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
66
xmlns:network="clr-namespace:NETworkManager.Models.Network;assembly=NETworkManager.Models"
77
xmlns:viewModels="clr-namespace:NETworkManager.ViewModels"
8+
xmlns:wpfHelpers="clr-namespace:NETworkManager.Utilities.WPF;assembly=NETworkManager.Utilities.WPF"
89
xmlns:localization="clr-namespace:NETworkManager.Localization.Resources;assembly=NETworkManager.Localization"
910
xmlns:simpleChildWindow="clr-namespace:MahApps.Metro.SimpleChildWindow;assembly=MahApps.Metro.SimpleChildWindow"
1011
xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
@@ -24,6 +25,7 @@
2425
Grid.Column="0" Grid.Row="0"
2526
VerticalAlignment="Center"
2627
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
<DataGrid x:Name="DataGridProfiles"

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,10 @@ Release date: **xx.xx.2026**
308308

309309
- Fixed `Enter` in the search box of the import result importing the profiles (default button). It filters the found profiles right away now, instead of after the delay while typing. [#PR](https://github.com/BornToBeRoot/NETworkManager/pull/PR)
310310

311+
**SNMP**
312+
313+
- Fixed `Enter` in the search box of the OID profiles dialog closing the dialog with **OK**. It only filters the OID profiles now. [#PR](https://github.com/BornToBeRoot/NETworkManager/pull/PR)
314+
311315
## Dependencies, Refactoring & Documentation
312316

313317
- Code cleanup & refactoring

0 commit comments

Comments
 (0)