mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Fixed Paste Issue in Notes View
This commit is contained in:
parent
5b2f88c4c6
commit
8749c0dd07
1 changed files with 7 additions and 3 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue