Skip to content

Commit 76f094c

Browse files
committed
Improve code quality
1 parent d788527 commit 76f094c

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Plugins/Flow.Launcher.Plugin.BrowserBookmark/Views/CustomBrowserSetting.xaml.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
using Flow.Launcher.Plugin.BrowserBookmark.Models;
1+
using Flow.Launcher.Plugin.BrowserBookmark.Models;
22
using Flow.Launcher.Plugin.BrowserBookmark.ViewModels;
33
using System.Windows;
4+
using System.Windows.Input;
45
using KeyEventArgs = System.Windows.Input.KeyEventArgs;
56

67
namespace Flow.Launcher.Plugin.BrowserBookmark.Views;
78

8-
/// <summary>
9-
/// Interaction logic for CustomBrowserSetting.xaml
10-
/// </summary>
119
public partial class CustomBrowserSetting : Window
1210
{
1311
private readonly CustomBrowserSettingViewModel _viewModel;
@@ -25,11 +23,11 @@ public CustomBrowserSetting(CustomBrowser browser)
2523

2624
private void WindowKeyDown(object sender, KeyEventArgs e)
2725
{
28-
if (e.Key == System.Windows.Input.Key.Enter)
26+
if (e.Key == Key.Enter)
2927
{
3028
_viewModel.SaveCommand.Execute(null);
3129
}
32-
else if (e.Key == System.Windows.Input.Key.Escape)
30+
else if (e.Key == Key.Escape)
3331
{
3432
_viewModel.CancelCommand.Execute(null);
3533
}

0 commit comments

Comments
 (0)