From 8749c0dd07c1067eaf545f3bef1d44bc829269c4 Mon Sep 17 00:00:00 2001 From: shuja-waraich-03 Date: Wed, 18 Mar 2026 06:39:08 -0500 Subject: [PATCH] Fixed Paste Issue in Notes View --- DynamicIsland/components/Notch/NotchNotesView.swift | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/DynamicIsland/components/Notch/NotchNotesView.swift b/DynamicIsland/components/Notch/NotchNotesView.swift index 4fe1119..48a54af 100644 --- a/DynamicIsland/components/Notch/NotchNotesView.swift +++ b/DynamicIsland/components/Notch/NotchNotesView.swift @@ -158,9 +158,13 @@ struct NotchNotesView: View { return } - // Fallback to text if not editing and clipboard has text - if !isEditingNewNote && selectedNoteId == nil { - if let text = pasteboard.string(forType: .string) { + // Handle text paste + if let text = pasteboard.string(forType: .string) { + if isEditingNewNote || selectedNoteId != nil { + // In editor: insert text at the end of content since we intercepted the shortcut + editorContent.append(text) + } else { + // Not in editor: create a new note with the pasted text createNoteWithContent(text) } }