|
@@ -145,19 +145,22 @@ static inline CPDFAreaOfInterest CAreaOfInterestForResizeHandle(CRectEdges mask,
|
|
} else if ([newActiveAnnotation isKindOfClass:[CPDFPolygonAnnotation class]] && self.clickPolygonAnnotation) {
|
|
} else if ([newActiveAnnotation isKindOfClass:[CPDFPolygonAnnotation class]] && self.clickPolygonAnnotation) {
|
|
[self doDragAddAnnotationWithEvent:theEvent];
|
|
[self doDragAddAnnotationWithEvent:theEvent];
|
|
} else {
|
|
} else {
|
|
- if ([newActiveAnnotation isKindOfClass:[CPDFSignatureWidgetAnnotation class]]) {
|
|
|
|
|
|
+ if([newActiveAnnotation isForm]) {
|
|
if (self.toolMode == CFormToolMode) {
|
|
if (self.toolMode == CFormToolMode) {
|
|
|
|
+ CPDFPage *page = self.activeAnnotation.page;
|
|
|
|
+ if (![self.activeAnnotations containsObject:newActiveAnnotation]) {
|
|
|
|
+ [self updateActiveAnnotations:@[newActiveAnnotation]];
|
|
|
|
+ [self setNeedsDisplayAnnotationViewForPage:page];
|
|
|
|
+ }
|
|
[self doDragAnnotationWithEvent:theEvent forAnnotation:self.activeAnnotation];
|
|
[self doDragAnnotationWithEvent:theEvent forAnnotation:self.activeAnnotation];
|
|
} else {
|
|
} else {
|
|
- [self showEditableFormAnnotationEditor:self.activeAnnotation];
|
|
|
|
- }
|
|
|
|
- return;
|
|
|
|
- } else if ([newActiveAnnotation isKindOfClass:[CPDFSignatureWidgetAnnotation class]]) {
|
|
|
|
- if (self.toolMode == CFormToolMode) {
|
|
|
|
- [self doDragAnnotationWithEvent:theEvent forAnnotation:newActiveAnnotation];
|
|
|
|
- } else {
|
|
|
|
- [self showEditableFormAnnotationEditor:newActiveAnnotation];
|
|
|
|
|
|
+ if ([newActiveAnnotation isKindOfClass:[CPDFSignatureWidgetAnnotation class]]) {
|
|
|
|
+ [self showEditableFormAnnotationEditor:newActiveAnnotation];
|
|
|
|
+ } else {
|
|
|
|
+ [super mouseDown:theEvent];
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
+
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
if ([newActiveAnnotation isKindOfClass:[KMTableAnnotation class]]) {
|
|
if ([newActiveAnnotation isKindOfClass:[KMTableAnnotation class]]) {
|
|
@@ -4371,9 +4374,9 @@ static inline CPDFAreaOfInterest CAreaOfInterestForResizeHandle(CRectEdges mask,
|
|
newActiveAnnotation = nil;
|
|
newActiveAnnotation = nil;
|
|
}
|
|
}
|
|
|
|
|
|
- if (([newActiveAnnotation isForm]) && self.toolMode != CFormToolMode) {
|
|
|
|
- newActiveAnnotation = nil;
|
|
|
|
- }
|
|
|
|
|
|
+// if (([newActiveAnnotation isForm]) && self.toolMode != CFormToolMode) {
|
|
|
|
+// newActiveAnnotation = nil;
|
|
|
|
+// }
|
|
|
|
|
|
if([newActiveAnnotation isKindOfClass:[CPDFInkAnnotation class]]) {
|
|
if([newActiveAnnotation isKindOfClass:[CPDFInkAnnotation class]]) {
|
|
if(self.annotationType == CAnnotationTypeInk || self.annotationType == CAnnotationTypeEraser)
|
|
if(self.annotationType == CAnnotationTypeInk || self.annotationType == CAnnotationTypeEraser)
|