File tree 3 files changed +5
-6
lines changed
src/cascadia/TerminalSettingsEditor
3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -1030,9 +1030,9 @@ namespace winrt::Microsoft::Terminal::Settings::Editor::implementation
1030
1030
}
1031
1031
}
1032
1032
1033
- void Appearances::FontFaceBox_QuerySubmitted (const AutoSuggestBox& sender, const AutoSuggestBoxQuerySubmittedEventArgs & args)
1033
+ void Appearances::FontFaceBox_SuggestionChosen (const AutoSuggestBox& sender, const AutoSuggestBoxSuggestionChosenEventArgs & args)
1034
1034
{
1035
- const auto font = unbox_value<Editor::Font>(args.ChosenSuggestion ());
1035
+ const auto font = unbox_value<Editor::Font>(args.SelectedItem ());
1036
1036
const auto fontName = font.Name ();
1037
1037
auto fontSpec = sender.Text ();
1038
1038
Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ namespace winrt::Microsoft::Terminal::Settings::Editor::implementation
179
179
180
180
void FontFaceBox_GotFocus (const Windows::Foundation::IInspectable& sender, const Windows::UI::Xaml::RoutedEventArgs& e);
181
181
void FontFaceBox_LostFocus (const Windows::Foundation::IInspectable& sender, const Windows::UI::Xaml::RoutedEventArgs& e);
182
- void FontFaceBox_QuerySubmitted (const winrt::Windows::UI::Xaml::Controls::AutoSuggestBox&, const winrt::Windows::UI::Xaml::Controls::AutoSuggestBoxQuerySubmittedEventArgs &);
182
+ void FontFaceBox_SuggestionChosen (const winrt::Windows::UI::Xaml::Controls::AutoSuggestBox&, const winrt::Windows::UI::Xaml::Controls::AutoSuggestBoxSuggestionChosenEventArgs &);
183
183
void FontFaceBox_TextChanged (const winrt::Windows::UI::Xaml::Controls::AutoSuggestBox&, const winrt::Windows::UI::Xaml::Controls::AutoSuggestBoxTextChangedEventArgs&);
184
184
void DeleteFontKeyValuePair_Click (const Windows::Foundation::IInspectable& sender, const Windows::UI::Xaml::RoutedEventArgs& e);
185
185
safe_void_coroutine BackgroundImage_Click (const Windows::Foundation::IInspectable& sender, const Windows::UI::Xaml::RoutedEventArgs& e);
Original file line number Diff line number Diff line change 214
214
ItemTemplate =" {StaticResource FontFaceComboBoxItemTemplate}"
215
215
ItemsSource =" {x:Bind FilteredFontList, Mode=OneWay}"
216
216
LostFocus =" FontFaceBox_LostFocus"
217
- QuerySubmitted = " FontFaceBox_QuerySubmitted "
217
+ SuggestionChosen = " FontFaceBox_SuggestionChosen "
218
218
Text =" {x:Bind Appearance.FontFace, Mode=OneWay}"
219
219
TextBoxStyle =" {StaticResource TextBoxSettingStyle}"
220
- TextChanged =" FontFaceBox_TextChanged"
221
- UpdateTextOnSelect =" False" />
220
+ TextChanged =" FontFaceBox_TextChanged" />
222
221
<CheckBox x : Name =" ShowAllFontsCheckbox"
223
222
x : Uid =" Profile_FontFaceShowAllFonts"
224
223
IsChecked =" {x:Bind ShowAllFonts, Mode=TwoWay}" />
You can’t perform that action at this time.
0 commit comments