mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 18:26:39 +02:00
making alt-f4 ignored (#4023)
This commit is contained in:
@@ -97,5 +97,6 @@
|
||||
<Window.InputBindings>
|
||||
<KeyBinding Key="Escape" Command="{Binding EscCommand}" />
|
||||
<KeyBinding Key="Enter" Command="{Binding OpenResultCommand}" />
|
||||
<KeyBinding Modifiers="Alt" Key="F4" Command="{Binding IgnoreCommand}" />
|
||||
</Window.InputBindings>
|
||||
</Window>
|
||||
|
||||
@@ -114,6 +114,8 @@ namespace Wox.ViewModel
|
||||
|
||||
private void InitializeKeyCommands()
|
||||
{
|
||||
IgnoreCommand = new RelayCommand(_ => {});
|
||||
|
||||
EscCommand = new RelayCommand(_ =>
|
||||
{
|
||||
if (!SelectedIsFromQueryResults())
|
||||
@@ -323,6 +325,7 @@ namespace Wox.ViewModel
|
||||
}
|
||||
}
|
||||
|
||||
public ICommand IgnoreCommand { get; set; }
|
||||
public ICommand EscCommand { get; set; }
|
||||
public ICommand SelectNextItemCommand { get; set; }
|
||||
public ICommand SelectPrevItemCommand { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user