From 860210628ef38bff49df04e3c84fea15b31a3fc9 Mon Sep 17 00:00:00 2001 From: Ioannis G Date: Sat, 26 Sep 2015 00:50:22 +0300 Subject: [PATCH] close settings with esc --- Wox/HotkeyControl.xaml.cs | 5 +++++ Wox/SettingWindow.xaml | 2 +- Wox/SettingWindow.xaml.cs | 9 +++++++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/Wox/HotkeyControl.xaml.cs b/Wox/HotkeyControl.xaml.cs index 73b16f033b..135769c743 100644 --- a/Wox/HotkeyControl.xaml.cs +++ b/Wox/HotkeyControl.xaml.cs @@ -108,5 +108,10 @@ namespace Wox return false; } + + public new bool IsFocused + { + get { return tbHotkey.IsFocused; } + } } } diff --git a/Wox/SettingWindow.xaml b/Wox/SettingWindow.xaml index 34582c8524..ac40627a54 100644 --- a/Wox/SettingWindow.xaml +++ b/Wox/SettingWindow.xaml @@ -11,7 +11,7 @@ Title="{DynamicResource woxsettings}" ResizeMode="NoResize" WindowStartupLocation="CenterScreen" - Height="600" Width="800"> + Height="600" Width="800" PreviewKeyDown="Window_PreviewKeyDown">