Преглед изворни кода

其他-补充页面编辑快捷键

ZhouJieSheng пре 2 година
родитељ
комит
4513aebebe
1 измењених фајлова са 17 додато и 0 уклоњено
  1. 17 0
      PDF Office/Views/PageEdit/PageEditContent.xaml

+ 17 - 0
PDF Office/Views/PageEdit/PageEditContent.xaml

@@ -139,6 +139,23 @@
         </ResourceDictionary>
     </UserControl.Resources>
 
+    <UserControl.InputBindings>
+        <KeyBinding Command="{Binding CopyCommand}" Gesture="Ctrl+C" />
+        <KeyBinding Command="{Binding PasteCommand}" Gesture="Ctrl+V" />
+        <KeyBinding Command="{Binding CutCommand}" Gesture="Ctrl+X" />
+        <KeyBinding Command="{Binding RightRotateCommand}" Gesture="Ctrl+R" />
+        <KeyBinding Command="{Binding LeftRotateCommand}" Gesture="Ctrl+L" />
+        <KeyBinding Command="{Binding DeleteCommand}" Gesture="Delete" />
+        <KeyBinding
+            Key="Add"
+            Command="{Binding ZoomInCommand}"
+            Modifiers="Ctrl" />
+        <KeyBinding
+            Key="Subtract"
+            Command="{Binding ZoomOutCommand}"
+            Modifiers="Ctrl" />
+    </UserControl.InputBindings>
+
     <Border BorderBrush="#F2F2F2" BorderThickness="0,1,0,0">
         <Grid
             DragLeave="Grid_DragLeave"