diff --git a/Filtration/UserControls/EditableListBoxControl.xaml b/Filtration/UserControls/EditableListBoxControl.xaml
index 67814e0..67ad475 100644
--- a/Filtration/UserControls/EditableListBoxControl.xaml
+++ b/Filtration/UserControls/EditableListBoxControl.xaml
@@ -41,7 +41,7 @@
-
+
diff --git a/Filtration/UserControls/EditableListBoxControl.xaml.cs b/Filtration/UserControls/EditableListBoxControl.xaml.cs
index 1ea4b10..b83a939 100644
--- a/Filtration/UserControls/EditableListBoxControl.xaml.cs
+++ b/Filtration/UserControls/EditableListBoxControl.xaml.cs
@@ -2,6 +2,8 @@
using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Input;
using Filtration.Annotations;
using GalaSoft.MvvmLight.CommandWpf;
@@ -106,5 +108,13 @@ namespace Filtration.UserControls
var handler = PropertyChanged;
handler?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
+
+ private void AutoCompleteBox_OnPreviewKeyDown(object sender, KeyEventArgs e)
+ {
+ if (e.Key == Key.Enter)
+ {
+ AddItemCommand.Execute(null);
+ }
+ }
}
}