diff options
author | sr55 <[email protected]> | 2015-04-18 19:03:56 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2015-04-18 19:03:56 +0000 |
commit | 8dbb216c9e01ca7102b24e8e5ebd09304a7ee0a9 (patch) | |
tree | 233e3bfa996cd0115d831f3353d0bc24a929b114 /win/CS/HandBrakeWPF/Views/MainView.xaml | |
parent | 906ec1611817b6a0eb26f694f34aaacd13aabdbc (diff) |
WinGui: Adding Del shortcut to preset pane, and better warnings when deleting.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7103 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/Views/MainView.xaml')
-rw-r--r-- | win/CS/HandBrakeWPF/Views/MainView.xaml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/Views/MainView.xaml b/win/CS/HandBrakeWPF/Views/MainView.xaml index ba311ae59..7f4809d83 100644 --- a/win/CS/HandBrakeWPF/Views/MainView.xaml +++ b/win/CS/HandBrakeWPF/Views/MainView.xaml @@ -4,6 +4,8 @@ xmlns:Controls="clr-namespace:HandBrakeWPF.Controls"
xmlns:Converters="clr-namespace:HandBrakeWPF.Converters"
xmlns:Micro="clr-namespace:Caliburn.Micro;assembly=Caliburn.Micro"
+ xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
+ xmlns:commands="clr-namespace:HandBrakeWPF.Commands"
AllowDrop="True"
FontSize="11"
Micro:Message.Attach="[Event Loaded] = [Action Load]"
@@ -553,6 +555,15 @@ BorderBrush="LightGray"
>
+ <i:Interaction.Triggers>
+ <commands:InputBindingTrigger>
+ <commands:InputBindingTrigger.InputBinding>
+ <KeyBinding Key="Delete"/>
+ </commands:InputBindingTrigger.InputBinding>
+ <Micro:ActionMessage MethodName="PresetRemove" />
+ </commands:InputBindingTrigger>
+ </i:Interaction.Triggers>
+
<ListBox.GroupStyle>
<GroupStyle ContainerStyle="{StaticResource ContainerStyle}"/>
</ListBox.GroupStyle>
|