Merge pull request #349 from shuja-waraich-03/main

Fixed Paste Issue in Notes View
This commit is contained in:
Hariharan Mudaliar 2026-03-18 18:20:20 +05:30 • committed by GitHub
commit 81f88804e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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