Fixed Paste Issue in Notes View

This commit is contained in:
shuja-waraich-03 2026-03-18 06:39:08 -05:00
commit 8749c0dd07

View file

@ -158,9 +158,13 @@ struct NotchNotesView: View {
return return
} }
// Fallback to text if not editing and clipboard has text // Handle text paste
if !isEditingNewNote && selectedNoteId == nil { if let text = pasteboard.string(forType: .string) {
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) createNoteWithContent(text)
} }
} }