mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Merge pull request #349 from shuja-waraich-03/main
Fixed Paste Issue in Notes View
This commit is contained in:
commit
81f88804e5
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 {
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue