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