diff options
author | Eric Maupin <ermaup@microsoft.com> | 2018-11-16 23:14:56 +0300 |
---|---|---|
committer | Eric Maupin <ermaup@microsoft.com> | 2018-11-16 23:15:02 +0300 |
commit | 08a669d04907dc013cc852265b28028b363f4e2b (patch) | |
tree | 9eed1e24b0f9c8bfeda0602caa017bdc11d999e3 /Xamarin.PropertyEditing.Windows | |
parent | 79d8eb9a2ac14f952116ff255b9936679a1d8ba6 (diff) |
[Win] Don't handle tabs if the autocomplete window isnt up
Fixes #452
Diffstat (limited to 'Xamarin.PropertyEditing.Windows')
-rw-r--r-- | Xamarin.PropertyEditing.Windows/TextBoxEx.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Xamarin.PropertyEditing.Windows/TextBoxEx.cs b/Xamarin.PropertyEditing.Windows/TextBoxEx.cs index 74863fe..38c7831 100644 --- a/Xamarin.PropertyEditing.Windows/TextBoxEx.cs +++ b/Xamarin.PropertyEditing.Windows/TextBoxEx.cs @@ -191,7 +191,7 @@ namespace Xamarin.PropertyEditing.Windows this.list.SelectedIndex--; this.list.ScrollIntoView (this.list.SelectedItem); - } else if (e.Key == Key.Enter || e.Key == Key.Tab) { + } else if (e.Key == Key.Enter) { if (this.list.SelectedValue != null) { SelectCompleteItem (this.list.SelectedItem); } else if (!this.popup.IsOpen) { @@ -200,6 +200,11 @@ namespace Xamarin.PropertyEditing.Windows else e.Handled = false; } + } else if (e.Key == Key.Tab) { + if (this.list.SelectedValue != null) + SelectCompleteItem (this.list.SelectedItem); + else + e.Handled = false; } else if (e.Key == Key.Escape) { if (this.popup.IsOpen) this.popup.IsOpen = false; |