Skip to content

Commit b3bce21

Browse files
committed
- Fixes mouse down
1 parent 924b1a1 commit b3bce21

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

FSNotes.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4380,7 +4380,7 @@
43804380
CODE_SIGN_IDENTITY = "Apple Development";
43814381
CODE_SIGN_STYLE = Automatic;
43824382
COMBINE_HIDPI_IMAGES = YES;
4383-
CURRENT_PROJECT_VERSION = 486;
4383+
CURRENT_PROJECT_VERSION = 489;
43844384
DEVELOPMENT_TEAM = 866P6MTE92;
43854385
EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE = YES;
43864386
ENABLE_HARDENED_RUNTIME = YES;
@@ -4415,7 +4415,7 @@
44154415
CODE_SIGN_IDENTITY = "Apple Development";
44164416
CODE_SIGN_STYLE = Automatic;
44174417
COMBINE_HIDPI_IMAGES = YES;
4418-
CURRENT_PROJECT_VERSION = 486;
4418+
CURRENT_PROJECT_VERSION = 489;
44194419
DEPLOYMENT_LOCATION = NO;
44204420
DEVELOPMENT_TEAM = 866P6MTE92;
44214421
EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE = YES;

FSNotes/View/EditTextView.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -269,14 +269,14 @@ class EditTextView: NSTextView, NSTextFinderClient, NSSharingServicePickerDelega
269269
override func mouseDown(with event: NSEvent) {
270270
let vc = self.window?.contentViewController as! ViewController
271271

272-
guard let note = EditTextView.note else { return }
272+
guard let note = EditTextView.note else { return super.mouseDown(with: event) }
273273
guard note.container != .encryptedTextPack else {
274274
vc.unLock(notes: [note])
275275
vc.emptyEditAreaImage.isHidden = false
276-
return
276+
return super.mouseDown(with: event)
277277
}
278278

279-
guard let container = self.textContainer, let manager = self.layoutManager else { return }
279+
guard let container = self.textContainer, let manager = self.layoutManager else { return super.mouseDown(with: event) }
280280

281281
let point = self.convert(event.locationInWindow, from: nil)
282282
let properPoint = NSPoint(x: point.x - textContainerInset.width, y: point.y)
@@ -286,7 +286,7 @@ class EditTextView: NSTextView, NSTextFinderClient, NSSharingServicePickerDelega
286286
let glyphRect = manager.boundingRect(forGlyphRange: NSRange(location: index, length: 1), in: container)
287287

288288
if glyphRect.contains(properPoint), isTodo(index) {
289-
guard let f = self.getTextFormatter() else { return }
289+
guard let f = self.getTextFormatter() else { return super.mouseDown(with: event) }
290290
f.toggleTodo(index)
291291

292292
NSApp.mainWindow?.makeFirstResponder(nil)
@@ -295,7 +295,7 @@ class EditTextView: NSTextView, NSTextFinderClient, NSSharingServicePickerDelega
295295
NSCursor.pointingHand.set()
296296
}
297297

298-
return
298+
return super.mouseDown(with: event)
299299
}
300300

301301
super.mouseDown(with: event)

0 commit comments

Comments
 (0)