|
@@ -2089,10 +2089,8 @@ namespace PDF_Master.ViewModels
|
|
{
|
|
{
|
|
if (KeyEventsHelper.IsSingleKey(System.Windows.Input.Key.Escape))
|
|
if (KeyEventsHelper.IsSingleKey(System.Windows.Input.Key.Escape))
|
|
{
|
|
{
|
|
- if (mainViewModel.IsBookMode == true)
|
|
|
|
- {
|
|
|
|
- Off_ReadModel();
|
|
|
|
- }
|
|
|
|
|
|
+ //判断是不是不是注释工具下
|
|
|
|
+ bool isunannotTool = true;
|
|
//内容选择 退出
|
|
//内容选择 退出
|
|
if (PDFViewer.MouseMode != MouseModes.PanTool)
|
|
if (PDFViewer.MouseMode != MouseModes.PanTool)
|
|
{
|
|
{
|
|
@@ -2106,10 +2104,28 @@ namespace PDF_Master.ViewModels
|
|
toolContentViewModel.SnapshotEditMenuViewModel.SnapToolArgs.ReSnapshot();
|
|
toolContentViewModel.SnapshotEditMenuViewModel.SnapToolArgs.ReSnapshot();
|
|
annotToolContent.BtnSelecttool.IsChecked = false;
|
|
annotToolContent.BtnSelecttool.IsChecked = false;
|
|
PDFViewer.SetMouseMode(MouseModes.PanTool);
|
|
PDFViewer.SetMouseMode(MouseModes.PanTool);
|
|
|
|
+ isunannotTool = false;
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ else {
|
|
|
|
+
|
|
|
|
+ if (toolContentViewModel!= null)
|
|
|
|
+ {
|
|
|
|
+ if (toolContentViewModel.IsCreateAnnot) {
|
|
|
|
+ isunannotTool = false;
|
|
|
|
+ toolContentViewModel.IsCreateAnnot=false;
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ if (mainViewModel.IsBookMode == true&& isunannotTool)
|
|
|
|
+ {
|
|
|
|
+ Off_ReadModel();
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if (KeyEventsHelper.IsModifierKey(ModifierKeys.Control, Key.C))
|
|
if (KeyEventsHelper.IsModifierKey(ModifierKeys.Control, Key.C))
|
|
{
|
|
{
|